Commit d01e9aa0 authored by Guido van Rossum's avatar Guido van Rossum

the usual

parent 1cd6a457
......@@ -148,8 +148,7 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
if ua:
env['HTTP_USER_AGENT'] = ua
# XXX Other HTTP_* headers
import regsub
decoded_query = regsub.gsub('+', ' ', query)
decoded_query = string.replace(query, '+', ' ')
try:
os.setuid(nobody)
except os.error:
......
......@@ -3,8 +3,11 @@ import sys
import imp
import string
t = imp.find_module('test_zlib')
file = t[0]
try:
t = imp.find_module('test_zlib')
file = t[0]
except ImportError:
file = open(__file__)
buf = file.read() * 8
file.close()
......
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