##// END OF EJS Templates
crecord: conditionalize the imports that are not available on Windows...
Matt Harbison -
r24423:01b39e82 default
parent child Browse files
Show More
@@ -12,7 +12,7 b' from i18n import _'
12 12 import patch as patchmod
13 13 import util, encoding
14 14
15 import os, re, sys, fcntl, struct, termios, signal, tempfile, locale, cStringIO
15 import os, re, sys, struct, signal, tempfile, locale, cStringIO
16 16
17 17 # This is required for ncurses to display non-ASCII characters in default user
18 18 # locale encoding correctly. --immerrr
@@ -20,10 +20,14 b" locale.setlocale(locale.LC_ALL, '')"
20 20
21 21 # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce'
22 22 if os.name == 'posix':
23 import curses
23 import curses, fcntl, termios
24 24 else:
25 25 # I have no idea if wcurses works with crecord...
26 import wcurses as curses
26 try:
27 import wcurses as curses
28 except ImportError:
29 # wcurses is not shipped on Windows by default
30 pass
27 31
28 32 try:
29 33 curses
@@ -21,6 +21,9 b' hidden by deduplication algorithm in the'
21 21 these may expose other cycles.
22 22
23 23 $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | xargs python "$import_checker"
24 mercurial/crecord.py mixed imports
25 stdlib: fcntl, termios
26 relative: curses
24 27 mercurial/dispatch.py mixed imports
25 28 stdlib: commands
26 29 relative: error, extensions, fancyopts, hg, hook, util
General Comments 0
You need to be logged in to leave comments. Login now