Berker Peksag added the comment:
Closing this as 'not a bug' since examples in both branches are correct. Thank
you for the report!
--
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
___
Python tracker
Berker Peksag added the comment:
I'm not sure this needs to be fixed in 2.7. I would only use demo_app to test
WSGI servers. Otherwise, you need to create your own application. However, the
code is correct in Python 3:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Changes by Adam Collard adam.coll...@gmail.com:
--
nosy: +adam-collard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
Adam Collard added the comment:
Since this bug depends on a __future__ import I was advised to put the test in
a separate file.
--
Added file: http://bugs.python.org/file30815/issue-17349-wsgiref
___
Python tracker rep...@bugs.python.org
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +pje, tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17349
___
___
New submission from Andrey Lebedev:
Under certain circumstances, wsgiref.simple_server.demo_app may return unicode
data, but that is prohibited by PEP-.
This happens if environ with unicode key is passed to demo_app. Unicode keys
are then written to StringIO instance, automatically making