diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-11 17:24:53 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2009-11-11 17:24:53 +0000 |
commit | f25702a099041d766c5d41b6bc1044739f4fdc2d (patch) | |
tree | f5f0dc78066dcd93cd6673d4e7fa9057b1636f0f | |
parent | 82759e4ab2aabd49fb06ce99f9369297595a1ed0 (diff) | |
download | cpython-git-f25702a099041d766c5d41b6bc1044739f4fdc2d.tar.gz |
Merged revisions 76212 via svnmerge from
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
........
-rw-r--r-- | Lib/CGIHTTPServer.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 5314189234..a829621d7c 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.py @@ -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: |