From: Senthil Kumaran Date: Wed, 11 Nov 2009 17:22:35 +0000 (+0000) Subject: Fixing the NameError on Windows - issue1235 X-Git-Tag: v2.7a1~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5dff3544f3b3b43f739b8ca02a8f1391e9128bb5;p=thirdparty%2FPython%2Fcpython.git Fixing the NameError on Windows - issue1235 --- diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index cb3f4649db3e..e8494a4ba26a 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -271,11 +271,11 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): nbytes = int(length) except (TypeError, ValueError): nbytes = 0 - files = subprocess.Popen(cmdline, - stdin = subprocess.PIPE, - stdout = subprocess.PIPE, - stderr = subprocess.PIPE - ) + p = subprocess.Popen(cmdline, + stdin = subprocess.PIPE, + stdout = subprocess.PIPE, + stderr = subprocess.PIPE + ) if self.command.lower() == "post" and nbytes > 0: data = self.rfile.read(nbytes) else: