[Python-checkins] r87819 - peps/trunk/pep-3333.txt

phillip.eby python-checkins at python.org
Fri Jan 7 16:56:14 CET 2011


Author: phillip.eby
Date: Fri Jan  7 16:56:14 2011
New Revision: 87819

Log:
Also, input is bytes, not unicode...


Modified:
   peps/trunk/pep-3333.txt

Modified: peps/trunk/pep-3333.txt
==============================================================================
--- peps/trunk/pep-3333.txt	(original)
+++ peps/trunk/pep-3333.txt	Fri Jan  7 16:56:14 2011
@@ -292,7 +292,7 @@
 
     def run_with_cgi(application):
         environ = {k: unicode_to_wsgi(v) for k,v in os.environ.items()}
-        environ['wsgi.input']        = sys.stdin
+        environ['wsgi.input']        = sys.stdin.buffer
         environ['wsgi.errors']       = sys.stderr
         environ['wsgi.version']      = (1, 0)
         environ['wsgi.multithread']  = False


More information about the Python-checkins mailing list