~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-18 02:21:57 UTC
  • mfrom: (1787 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1794.
  • Revision ID: john@arbash-meinel.com-20060618022157-6e33aa9b67c25e4f
[merge] bzr.dev 1787

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
11
10
try:
12
11
   import ctypes
13
 
   has_ctypes = True
14
12
except ImportError:
15
 
    has_ctypes = False
 
13
   ctypes = None
16
14
 
17
15
 
18
16
WIN32_STDIN_HANDLE = -10
29
27
 
30
28
   Dependencies: ctypes should be installed.
31
29
   """
32
 
   if not has_ctypes:
 
30
   if ctypes is None:
33
31
       # no ctypes is found
34
32
       return (defaultx, defaulty)
35
33