From 5dff3544f3b3b43f739b8ca02a8f1391e9128bb5 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Wed, 11 Nov 2009 17:22:35 +0000 Subject: Fixing the NameError on Windows - issue1235 --- Lib/CGIHTTPServer.py | 10 +++++----- 1 file 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: -- cgit v0.12