Commits

Anonymous committed 638d877

the usual

  • Participants
  • Parent commits d4e9ac7
  • Branches legacy-trunk

Comments (0)

Files changed (2)

File Lib/dos-8x3/cgihttps.py

 	    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:

File Lib/dos-8x3/test_zli.py

 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()