diff options
| author | Joel Rivera <rivera@joel.mx> | 2015-10-24 17:08:00 -0500 |
|---|---|---|
| committer | Joel Rivera <rivera@joel.mx> | 2015-10-24 17:08:00 -0500 |
| commit | 79e50ce298b1b732c5403363243b8d615eec1377 (patch) | |
| tree | e808dbd66dbf835a08f17af23255ac6857b2060e | |
| parent | ef708f6dd473ed05f6156970907616fd6797321c (diff) | |
| parent | 32091b265f6012138a736974be1750635dc5de63 (diff) | |
| download | cherrypy-git-79e50ce298b1b732c5403363243b8d615eec1377.tar.gz | |
Merged in jayvdb/cherrypy/subprocess-py26-win32-fix (pull request #106)
Python 2.6 str.format does not support unindexed parameters
| -rw-r--r-- | cherrypy/_cpcompat_subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cherrypy/_cpcompat_subprocess.py b/cherrypy/_cpcompat_subprocess.py index ce363725..517b8d44 100644 --- a/cherrypy/_cpcompat_subprocess.py +++ b/cherrypy/_cpcompat_subprocess.py @@ -883,7 +883,7 @@ class Popen(object): startupinfo.dwFlags |= _subprocess.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = _subprocess.SW_HIDE
comspec = os.environ.get("COMSPEC", "cmd.exe")
- args = '{} /c "{}"'.format(comspec, args)
+ args = '{0} /c "{1}"'.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
@@ -1029,7 +1029,7 @@ class Popen(object): elif sig == signal.CTRL_BREAK_EVENT:
os.kill(self.pid, signal.CTRL_BREAK_EVENT)
else:
- raise ValueError("Unsupported signal: {}".format(sig))
+ raise ValueError("Unsupported signal: {0}".format(sig))
def terminate(self):
"""Terminates the process
|
