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

phillip.eby python-checkins at python.org
Fri Jan 7 16:39:28 CET 2011


Author: phillip.eby
Date: Fri Jan  7 16:39:27 2011
New Revision: 87815

Log:
More bytes I/O fixes


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:39:27 2011
@@ -310,9 +310,9 @@
             elif not headers_sent:
                  # Before the first output, send the stored headers
                  status, response_headers = headers_sent[:] = headers_set
-                 sys.stdout.write('Status: %s\r\n' % status)
+                 sys.stdout.buffer.write('Status: %s\r\n' % status)
                  for header in response_headers:
-                     sys.stdout.write('%s: %s\r\n' % header)
+                     sys.stdout.buffer.write('%s: %s\r\n' % header)
                  sys.stdout.write('\r\n')
 
             sys.stdout.buffer.write(data)


More information about the Python-checkins mailing list