Fixing the NameError on Windows - issue1235
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 @@
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: