Message145735
| Author |
bpoaugust |
| Recipients |
bpoaugust, brian.curtin, eric.araujo, jldm, ned.deily, r.david.murray, vstinner |
| Date |
2011年10月17日.17:22:49 |
| SpamBayes Score |
0.014700294 |
| Marked as misclassified |
No |
| Message-id |
<1318872169.89.0.853680110481.issue10197@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
subprocess.getoutput does not currently work at all on Windows.
So it's not necessary to maintain backwards compatibility.
The following fix works for me on WinXP/Python 3.2.2.
Replace
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') # line 613 of subprocess.py
with
if mswindows:
pipe = os.popen(cmd + ' 2>&1', 'r') # Windows does not support { }
else:
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') |
|