Kaydet (Commit) 5dff3544 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Fixing the NameError on Windows - issue1235

üst 3a145a18
...@@ -271,11 +271,11 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): ...@@ -271,11 +271,11 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
nbytes = int(length) nbytes = int(length)
except (TypeError, ValueError): except (TypeError, ValueError):
nbytes = 0 nbytes = 0
files = subprocess.Popen(cmdline, p = subprocess.Popen(cmdline,
stdin = subprocess.PIPE, stdin = subprocess.PIPE,
stdout = subprocess.PIPE, stdout = subprocess.PIPE,
stderr = subprocess.PIPE stderr = subprocess.PIPE
) )
if self.command.lower() == "post" and nbytes > 0: if self.command.lower() == "post" and nbytes > 0:
data = self.rfile.read(nbytes) data = self.rfile.read(nbytes)
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment