mirror of
https://github.com/python/cpython
synced 2024-09-18 21:11:40 +00:00
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. :-(
This commit is contained in:
parent
9f7a539afe
commit
0afde13b43
|
@ -222,8 +222,8 @@ def run_cgi(self):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue