/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

  • Committer: Robert Collins
  • Date: 2006-08-08 23:19:29 UTC
  • mfrom: (1884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060808231929-4e3e298190214b3a
current status

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