summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rivera <rivera@joel.mx>2015-10-24 17:08:00 -0500
committerJoel Rivera <rivera@joel.mx>2015-10-24 17:08:00 -0500
commit21c2909b1b109ceb0f61725ea363500dfdb63ed0 (patch)
treea857de2296ba760891c684711216d5b9c2c1fbfc
parent61db471d03e88911a52cb8eb5c991a901b1d9a12 (diff)
parent4ea5d2fd496bb4778a41369512e3f64b717d6f02 (diff)
downloadcherrypy-21c2909b1b109ceb0f61725ea363500dfdb63ed0.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.py4
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