Mercurial > cpython-lru_cache-weakref
diff Lib/subprocess.py @ 63922:56066a5825ca
#2304: fix incorporating Eric Smith's .format suggestion and tested on Ubuntu as well as Windows
| author | Tim Golden <mail@timgolden.me.uk> |
|---|---|
| date | Wed, 11 Aug 2010 14:20:40 +0000 |
| parents | cc0ee6bb5e9b |
| children | 9bdc5901207b |
line wrap: on
line diff
--- a/Lib/subprocess.py Wed Aug 11 13:31:33 2010 +0000 +++ b/Lib/subprocess.py Wed Aug 11 14:20:40 2010 +0000 @@ -853,7 +853,7 @@ 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
