~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Martin Packman
  • Date: 2011-12-05 11:06:16 UTC
  • mto: This revision was merged to the branch mainline in revision 6342.
  • Revision ID: martin.packman@canonical.com-20111205110616-i7v6fgkzvwvntndz
Set all has_win32* to False if pywintypes can't be imported

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    import pywintypes
72
72
    has_pywintypes = True
73
73
except ImportError:
74
 
    has_pywintypes = False
 
74
    has_pywintypes = has_win32file = has_win32api = False
75
75
else:
76
76
    try:
77
77
        import win32file