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.0147003
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')
History
Date User Action Args
2011-10-17 17:22:50bpoaugustsetrecipients: + bpoaugust, vstinner, ned.deily, eric.araujo, r.david.murray, brian.curtin, jldm
2011-10-17 17:22:49bpoaugustsetmessageid: <1318872169.89.0.853680110481.issue10197@psf.upfronthosting.co.za>
2011-10-17 17:22:49bpoaugustlinkissue10197 messages
2011-10-17 17:22:49bpoaugustcreate