Show More
@@ -51,6 +51,7 b' def sha1(s):' | |||||
51 |
|
51 | |||
52 | try: |
|
52 | try: | |
53 | import subprocess |
|
53 | import subprocess | |
|
54 | subprocess.Popen # trigger ImportError early | |||
54 | closefds = os.name == 'posix' |
|
55 | closefds = os.name == 'posix' | |
55 | def popen2(cmd, mode='t', bufsize=-1): |
|
56 | def popen2(cmd, mode='t', bufsize=-1): | |
56 | p = subprocess.Popen(cmd, shell=True, bufsize=bufsize, |
|
57 | p = subprocess.Popen(cmd, shell=True, bufsize=bufsize, | |
@@ -76,7 +77,7 b' try:' | |||||
76 | except ImportError: |
|
77 | except ImportError: | |
77 | subprocess = None |
|
78 | subprocess = None | |
78 | import popen2 as _popen2 |
|
79 | import popen2 as _popen2 | |
79 |
popen2 = |
|
80 | popen2 = os.popen2 | |
80 | Popen3 = _popen2.Popen3 |
|
81 | Popen3 = _popen2.Popen3 | |
81 |
|
82 | |||
82 |
|
83 |
General Comments 0
You need to be logged in to leave comments.
Login now