~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

  • Committer: Martin Pool
  • Date: 2006-06-20 03:57:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1798.
  • Revision ID: mbp@sourcefrog.net-20060620035711-400bb6b6bc6ff95b
Add pyflakes makefile target; fix many warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
import struct
9
9
 
 
10
# We can cope without it; use a separate variable to help pyflakes
10
11
try:
11
12
   import ctypes
 
13
   has_ctypes = True
12
14
except ImportError:
13
 
   ctypes = None
 
15
    has_ctypes = False
14
16
 
15
17
 
16
18
WIN32_STDIN_HANDLE = -10
27
29
 
28
30
   Dependencies: ctypes should be installed.
29
31
   """
30
 
   if ctypes is None:
 
32
   if not has_ctypes:
31
33
       # no ctypes is found
32
34
       return (defaultx, defaulty)
33
35