~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-03 20:18:35 UTC
  • mfrom: (1185.82.137 w-changeset)
  • Revision ID: pqm@pqm.ubuntu.com-20060603201835-1c9a1725641ccd24
Implement bundles

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