You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Module wsgiref is not python3000 ready (unicode issues) #48772
The test uses StringIO. I don't understand the test enough to change
that. If I understand the WSGI spec correctly then it would be the test
that's wrong.
The test should indeed be changed. You may want to use io.BytesIO
instead.
In any case this test looks like a standard usage of the library. Please
make it as pleasant-looking as possible.
Activity
tordmor commentedon Dec 4, 2008
wsgiref.handlers.py tries to send strings where bytes is necessary in
accordance with PEP-333 the attached patch encodes everything with
ISO-8859-1.
Additionally the patch from bpo-3348 has to be applied.
amauryfa commentedon Dec 5, 2008
The patch is incomplete: it breaks test_wsgiref.
tordmor commentedon Dec 5, 2008
The test uses StringIO. I don't understand the test enough to change
that. If I understand the WSGI spec correctly then it would be the test
that's wrong.
amauryfa commentedon Dec 5, 2008
The test should indeed be changed. You may want to use io.BytesIO
instead.
In any case this test looks like a standard usage of the library. Please
make it as pleasant-looking as possible.
pitrou commentedon Jan 1, 2009
Resolution is more advanced in bpo-4718.