Index: Lib/commands.py =================================================================== --- Lib/commands.py (revision 54974) +++ Lib/commands.py (working copy) @@ -52,7 +52,10 @@ def getstatusoutput(cmd): """Return (status, output) of executing cmd in a shell.""" import os - pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') + if (os.name == 'nt'): + pipe = os.popen(' ' + cmd + ' 2>&1', 'r') + else: + pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') text = pipe.read() sts = pipe.close() if sts is None: sts = 0