From: Guido van Rossum Date: Tue, 30 Dec 1997 04:20:58 +0000 (+0000) Subject: the usual X-Git-Tag: v1.5~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d01e9aa0df6471befde64550db232968732d975e;p=thirdparty%2FPython%2Fcpython.git the usual --- diff --git a/Lib/dos-8x3/cgihttps.py b/Lib/dos-8x3/cgihttps.py index 85e172172193..b40edbced47e 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 62c26048eb8e..72dbcfa20a16 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()