]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixing the NameError on Windows - issue1235
authorSenthil Kumaran <orsenthil@gmail.com>
Wed, 11 Nov 2009 17:22:35 +0000 (17:22 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Wed, 11 Nov 2009 17:22:35 +0000 (17:22 +0000)
Lib/CGIHTTPServer.py

index cb3f4649db3e62509209639f35eb30f0adfd3f85..e8494a4ba26aa9323b0e100e1fcbb7de825eb5e3 100644 (file)
@@ -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: