summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2009-11-11 17:22:35 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2009-11-11 17:22:35 (GMT)
commit5dff3544f3b3b43f739b8ca02a8f1391e9128bb5 (patch)
tree9b323e4ef0f33bee48aa3b47fd7d16786ddb48bd /Lib/CGIHTTPServer.py
parent3a145a18c863f2b573b47126f7d6ed35bc3d48af (diff)
downloadcpython-5dff3544f3b3b43f739b8ca02a8f1391e9128bb5.zip
cpython-5dff3544f3b3b43f739b8ca02a8f1391e9128bb5.tar.gz
cpython-5dff3544f3b3b43f739b8ca02a8f1391e9128bb5.tar.bz2
Fixing the NameError on Windows - issue1235
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py
index cb3f464..e8494a4 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: