diff options
author | Tim Golden <mail@timgolden.me.uk> | 2010-08-12 09:45:25 (GMT) |
---|---|---|
committer | Tim Golden <mail@timgolden.me.uk> | 2010-08-12 09:45:25 (GMT) |
commit | 595c8d34a340fa2f381d9b0e4b6a09e2accc6898 (patch) | |
tree | 30e467c2c8a8c4ec76ecf0ff318987bb28d77739 /Lib/subprocess.py | |
parent | d748c3d4a292116f1bb6501491784779f3dda149 (diff) | |
download | cpython-595c8d34a340fa2f381d9b0e4b6a09e2accc6898.zip cpython-595c8d34a340fa2f381d9b0e4b6a09e2accc6898.tar.gz cpython-595c8d34a340fa2f381d9b0e4b6a09e2accc6898.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.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 0009bcd..5437243 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -829,7 +829,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 |