summaryrefslogtreecommitdiff
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-24 21:18:41 +0000
committerGuido van Rossum <guido@python.org>1997-12-24 21:18:41 +0000
commitaccbb33ffa87d6258253d9a0ccb8b5fc6ac3edb4 (patch)
treef90075485b7e993a36461470f686d5a9fc7aecbb /Lib/CGIHTTPServer.py
parent92d0158118a94efb32aeafdc1509e4ca5affa7de (diff)
downloadcpython-accbb33ffa87d6258253d9a0ccb8b5fc6ac3edb4.tar.gz
Use string.replace instead of regsub.[g]sub.
Diffstat (limited to 'Lib/CGIHTTPServer.py')
-rw-r--r--Lib/CGIHTTPServer.py3
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: