Changeset 603 for python/trunk/Lib/popen2.py
- Timestamp:
- Dec 11, 2015, 1:26:45 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/popen2.py
r10 r603 12 12 warnings.warn("The popen2 module is deprecated. Use the subprocess module.", 13 13 DeprecationWarning, stacklevel=2) 14 15 import sysconfig 16 SHELL = sysconfig.get_config_var('SHELL') or '/bin/sh' 14 17 15 18 __all__ = ["popen2", "popen3", "popen4"] … … 82 85 def _run_child(self, cmd): 83 86 if isinstance(cmd, basestring): 84 cmd = [ '/bin/sh', '-c', cmd]87 cmd = [SHELL, '-c', cmd] 85 88 os.closerange(3, MAXFD) 86 89 try:
Note:
See TracChangeset
for help on using the changeset viewer.