~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32console.py

Move doctest import to increase speed

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