summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-03-01 21:46:51 (GMT)
committerBarry Warsaw <barry@python.org>2010-03-01 21:46:51 (GMT)
commit08a8fb30b6042e43d680b5b473a884fa987f661c (patch)
treeb1fa01c8b660132c6d2bf01c10dff542a9ba27a6 /Lib
parente7901c5ebbf81bd07203433f20224077d8020a5e (diff)
downloadcpython-08a8fb30b6042e43d680b5b473a884fa987f661c.zip
cpython-08a8fb30b6042e43d680b5b473a884fa987f661c.tar.gz
cpython-08a8fb30b6042e43d680b5b473a884fa987f661c.tar.bz2
Manually copy patch for bug 7250 from the release26-maint branch. I suck
because I did this in the wrong order and couldn't smack svnmerge into submission.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/wsgiref/handlers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/wsgiref/handlers.py b/Lib/wsgiref/handlers.py
index fcb8e23..a5f7109 100644
--- a/Lib/wsgiref/handlers.py
+++ b/Lib/wsgiref/handlers.py
@@ -434,6 +434,10 @@ class CGIHandler(BaseCGIHandler):
"""
wsgi_run_once = True
+ # Do not allow os.environ to leak between requests in Google App Engine
+ # and other multi-run CGI use cases. This is not easily testable.
+ # See http://bugs.python.org/issue7250
+ os_environ = {}
def __init__(self):
BaseCGIHandler.__init__(