[issue10197] subprocess.getoutput fails on win32
Éric Araujo
report at bugs.python.org
Fri Apr 6 18:51:08 CEST 2012
Éric Araujo <merwok at netwok.org> added the comment:
I think that adding safer wrappers and deprecating things are valuable but different bugs. In the short term, we could apply the proposed small patch to just fix the issue at hand. Can one of the Windows experts weigh in?
The patch does this:
if mswindows:
pipe = os.popen('( ' + cmd + ' ) 2>&1', 'r')
else:
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')
It was tested manually; a test should be simple to write.
----------
keywords: +needs review
nosy: +tim.golden
stage: -> test needed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10197>
_______________________________________
More information about the Python-bugs-list
mailing list