diff options
author | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-24 21:18:41 +0000 |
commit | accbb33ffa87d6258253d9a0ccb8b5fc6ac3edb4 (patch) | |
tree | f90075485b7e993a36461470f686d5a9fc7aecbb /Lib/CGIHTTPServer.py | |
parent | 92d0158118a94efb32aeafdc1509e4ca5affa7de (diff) | |
download | cpython-accbb33ffa87d6258253d9a0ccb8b5fc6ac3edb4.tar.gz |
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 85e1721721..b40edbced4 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: |