Kaydet (Commit) 0afde13b authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix two typos, one noted by Noah Spurrier in SF bug #475166, the

second noted after a second's thought about what the next line should
do. :-(
üst 9f7a539a
......@@ -222,8 +222,8 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if self.is_python(scriptfile):
interp = sys.executable
if interp.lower().endswith("w.exe"):
# On Windows, use python.exe, not python.exe
interp = interp[:-5] = interp[-4:]
# On Windows, use python.exe, not pythonw.exe
interp = interp[:-5] + interp[-4:]
cmdline = "%s -u %s" % (interp, cmdline)
if '=' not in query and '"' not in query:
cmdline = '%s "%s"' % (cmdline, query)
......
......@@ -397,6 +397,7 @@ Dirk Soede
Paul Sokolovsky
Clay Spence
Per Spilling
Noah Spurrier
Greg Stein
Dan Stromberg
Nathan Sullivan
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment