From 0afde13b435f484ecbc3e95107d2318415f21d29 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 26 Oct 2001 03:38:46 +0000 Subject: 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. :-( --- Lib/CGIHTTPServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/CGIHTTPServer.py') diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index e8abd22c75..e724601098 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -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) -- cgit v1.2.1