Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d01e9aa

Browse files
committed
the usual
1 parent 1cd6a45 commit d01e9aa

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lib/dos-8x3/cgihttps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ def run_cgi(self):
148148
if ua:
149149
env['HTTP_USER_AGENT'] = ua
150150
# XXX Other HTTP_* headers
151-
import regsub
152-
decoded_query = regsub.gsub('+', ' ', query)
151+
decoded_query = string.replace(query, '+', ' ')
153152
try:
154153
os.setuid(nobody)
155154
except os.error:

Lib/dos-8x3/test_zli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
import imp
44
import string
55

6-
t = imp.find_module('test_zlib')
7-
file = t[0]
6+
try:
7+
t = imp.find_module('test_zlib')
8+
file = t[0]
9+
except ImportError:
10+
file = open(__file__)
811
buf = file.read() * 8
912
file.close()
1013

0 commit comments

Comments
 (0)