summaryrefslogtreecommitdiffstats
path: root/Lib/CGIHTTPServer.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-24 21:18:41 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-24 21:18:41 (GMT)
commit00f9fea288baed5a37e3866b492185b5045d30d4 (patch)
tree8ecf28e2d8907d52e18f10a66e582d5d3bda92d7 /Lib/CGIHTTPServer.py
parentb9b50eb7e09ec1b28e8549c2c90d7ed5748b3173 (diff)
downloadcpython-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.py3
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: