]> granicus.if.org Git - python/commitdiff
Merged revisions 76212 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Wed, 11 Nov 2009 17:24:53 +0000 (17:24 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Wed, 11 Nov 2009 17:24:53 +0000 (17:24 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76212 | senthil.kumaran | 2009-11-11 22:52:35 +0530 (Wed, 11 Nov 2009) | 3 lines

  Fixing the NameError on Windows - issue1235
........

Lib/CGIHTTPServer.py

index 531418923484ffa5a3d81d97f917afe97f478d88..a829621d7cdbcb6372fe7e568b98302eb678623b 100644 (file)
@@ -275,11 +275,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: