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