mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Use string.replace instead of regsub.[g]sub.
This commit is contained in:
parent
b9b50eb7e0
commit
00f9fea288
5 changed files with 13 additions and 17 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue