summaryrefslogtreecommitdiffstats
path: root/Lib/subprocess.py
diff options
context:
space:
mode:
authorTim Golden <mail@timgolden.me.uk>2010-08-11 14:20:40 (GMT)
committerTim Golden <mail@timgolden.me.uk>2010-08-11 14:20:40 (GMT)
commit126c2960ca36f26730e28f41f66e62f0934d0575 (patch)
treeaf328b9e180100e7ea3d3eb31eaa95d590258ecb /Lib/subprocess.py
parent32cfedeb1c378d6acf8e39308831f826f614a204 (diff)
downloadcpython-126c2960ca36f26730e28f41f66e62f0934d0575.zip
cpython-126c2960ca36f26730e28f41f66e62f0934d0575.tar.gz
cpython-126c2960ca36f26730e28f41f66e62f0934d0575.tar.bz2
#2304: fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as well as Windows
Diffstat (limited to 'Lib/subprocess.py')
-rw-r--r--Lib/subprocess.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
index ae033d4..e41ffe3 100644
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -853,7 +853,7 @@ class Popen(object):
startupinfo.dwFlags |= _subprocess.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _subprocess.SW_HIDE
comspec = os.environ.get("COMSPEC", "cmd.exe")
- args = comspec + " /c " + args
+ args = '{} /c "{}"'.format (comspec, args)
if (_subprocess.GetVersion() >= 0x80000000 or
os.path.basename(comspec).lower() == "command.com"):
# Win9x, or using command.com on NT. We need to