Show More
@@ -44,9 +44,7 def sha1(s): | |||
|
44 | 44 | _sha1 = sha.sha |
|
45 | 45 | return _sha1(s) |
|
46 | 46 | |
|
47 | try: | |
|
48 | 47 |
|
|
49 | subprocess.Popen # trigger ImportError early | |
|
50 | 48 |
|
|
51 | 49 |
|
|
52 | 50 |
|
@@ -69,12 +67,6 try: | |||
|
69 | 67 |
|
|
70 | 68 |
|
|
71 | 69 |
|
|
72 | except ImportError: | |
|
73 | subprocess = None | |
|
74 | from popen2 import Popen3 | |
|
75 | popen2 = os.popen2 | |
|
76 | popen3 = os.popen3 | |
|
77 | ||
|
78 | 70 | |
|
79 | 71 | def version(): |
|
80 | 72 | """Return version information if available.""" |
@@ -11,9 +11,13 import difflib | |||
|
11 | 11 | import errno |
|
12 | 12 | import optparse |
|
13 | 13 | import os |
|
14 | try: | |
|
15 | 14 |
|
|
16 | subprocess.Popen # trigger ImportError early | |
|
15 | import shutil | |
|
16 | import signal | |
|
17 | import sys | |
|
18 | import tempfile | |
|
19 | import time | |
|
20 | ||
|
17 | 21 |
|
|
18 | 22 |
|
|
19 | 23 |
|
@@ -24,14 +28,6 try: | |||
|
24 | 28 |
|
|
25 | 29 |
|
|
26 | 30 |
|
|
27 | except ImportError: | |
|
28 | subprocess = None | |
|
29 | from popen2 import Popen4 | |
|
30 | import shutil | |
|
31 | import signal | |
|
32 | import sys | |
|
33 | import tempfile | |
|
34 | import time | |
|
35 | 31 | |
|
36 | 32 | # reserved exit code to skip test (used by hghave) |
|
37 | 33 | SKIPPED_STATUS = 80 |
General Comments 0
You need to be logged in to leave comments.
Login now