changeset 4310:748d0cbcbd9b

Fix: variable assignment in evaluate_request
author Florian Krupicka <florian.krupicka@googlemail.com>
date Fri, 15 Aug 2008 10:21:22 +0200
parents 7d97ce960ec2
children bafefd635670
files MoinMoin/web/request.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/request.py	Thu Aug 14 23:00:17 2008 +0200
+++ b/MoinMoin/web/request.py	Fri Aug 15 10:21:22 2008 +0200
@@ -115,15 +115,13 @@
     purposes.
     """
     output = []
-    status_code = None
-    headers_result = None
+    headers_set = []
     def start_response(status, headers, exc_info=None):
-        status_code = status
-        headers_result = headers
+        headers_set[:] = [status, headers]
         return output.append
     result = request(request.environ, start_response)
 
     # any output via (WSGI-deprecated) write-callable?
     if output:
         result = output
-    return (result, status_code, headers_result)
+    return (result, headers_set[0], headers_set[1])