summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-30 04:20:58 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-30 04:20:58 (GMT)
commitd01e9aa0df6471befde64550db232968732d975e (patch)
tree80cddecfcc7f7a04d27e55ba8de8d11f44baf0a9 /Lib/dos-8x3
parent1cd6a457d9c4aa3cea72e7ccef4b008eb5e24654 (diff)
downloadcpython-d01e9aa0df6471befde64550db232968732d975e.zip
cpython-d01e9aa0df6471befde64550db232968732d975e.tar.gz
cpython-d01e9aa0df6471befde64550db232968732d975e.tar.bz2
the usual
Diffstat (limited to 'Lib/dos-8x3')
-rwxr-xr-xLib/dos-8x3/cgihttps.py3
-rw-r--r--Lib/dos-8x3/test_zli.py7
2 files changed, 6 insertions, 4 deletions
diff --git a/Lib/dos-8x3/cgihttps.py b/Lib/dos-8x3/cgihttps.py
index 85e1721..b40edbc 100755
--- a/Lib/dos-8x3/cgihttps.py
+++ b/Lib/dos-8x3/cgihttps.py
@@ -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:
diff --git a/Lib/dos-8x3/test_zli.py b/Lib/dos-8x3/test_zli.py
index 62c2604..72dbcfa 100644
--- a/Lib/dos-8x3/test_zli.py
+++ b/Lib/dos-8x3/test_zli.py
@@ -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()