[Python-Dev] [Python-checkins] r87815 - peps/trunk/pep-3333.txt
Victor Stinner
victor.stinner at haypocalc.com
Fri Jan 7 17:18:38 CET 2011
Le vendredi 07 janvier 2011 à 16:39 +0100, phillip.eby a écrit :
> 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')
Are ('Status: %s\r\n' % status) and ('%s: %s\r\n' % header) byte strings
or unicode strings?
Victor
More information about the Python-Dev
mailing list