~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

  • Committer: Robey Pointer
  • Date: 2006-07-01 19:03:33 UTC
  • mfrom: (1829 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1830.
  • Revision ID: robey@lag.net-20060701190333-f58465aec4bd3412
merge from bzr.dev

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