diff options
author | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 (GMT) |
commit | 00f9fea288baed5a37e3866b492185b5045d30d4 (patch) | |
tree | 8ecf28e2d8907d52e18f10a66e582d5d3bda92d7 /Lib/CGIHTTPServer.py | |
parent | b9b50eb7e09ec1b28e8549c2c90d7ed5748b3173 (diff) | |
download | cpython-00f9fea288baed5a37e3866b492185b5045d30d4.zip cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.gz cpython-00f9fea288baed5a37e3866b492185b5045d30d4.tar.bz2 |
Use string.replace instead of regsub.[g]sub.
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r-- | Lib/CGIHTTPServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/CGIHTTPServer.py b/Lib/CGIHTTPServer.py index 85e1721..b40edbc 100644 --- a/Lib/CGIHTTPServer.py +++ b/Lib/CGIHTTPServer.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: |