Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cd6a45 commit d01e9aaCopy full SHA for d01e9aa
2 files changed
Lib/dos-8x3/cgihttps.py
@@ -148,8 +148,7 @@ def run_cgi(self):
148
if ua:
149
env['HTTP_USER_AGENT'] = ua
150
# XXX Other HTTP_* headers
151
- import regsub
152
- decoded_query = regsub.gsub('+', ' ', query)
+ decoded_query = string.replace(query, '+', ' ')
153
try:
154
os.setuid(nobody)
155
except os.error:
Lib/dos-8x3/test_zli.py
@@ -3,8 +3,11 @@
3
import imp
4
import string
5
6
-t = imp.find_module('test_zlib')
7
-file = t[0]
+try:
+ t = imp.find_module('test_zlib')
8
+ file = t[0]
9
+except ImportError:
10
+ file = open(__file__)
11
buf = file.read() * 8
12
file.close()
13
0 commit comments