Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0afde13

Browse files
committed
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. :-(
1 parent 9f7a539 commit 0afde13

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/CGIHTTPServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def run_cgi(self):
222222
if self.is_python(scriptfile):
223223
interp = sys.executable
224224
if interp.lower().endswith("w.exe"):
225-
# On Windows, use python.exe, not python.exe
226-
interp = interp[:-5] = interp[-4:]
225+
# On Windows, use python.exe, not pythonw.exe
226+
interp = interp[:-5] + interp[-4:]
227227
cmdline = "%s -u %s" % (interp, cmdline)
228228
if '=' not in query and '"' not in query:
229229
cmdline = '%s "%s"' % (cmdline, query)

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ Dirk Soede
397397
Paul Sokolovsky
398398
Clay Spence
399399
Per Spilling
400+
Noah Spurrier
400401
Greg Stein
401402
Dan Stromberg
402403
Nathan Sullivan

0 commit comments

Comments
 (0)