diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 16:01:04 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-04-21 16:01:04 +0200 |
commit | 5e7e91f896904d274f45570de60fe100fbaec0b7 (patch) | |
tree | 5e179a000b1ad119edd0d925d41ed470f78afcc9 /paste/util | |
parent | ad47e4d46b3d6d5705243fbf68ad5ecc34108264 (diff) | |
download | paste-5e7e91f896904d274f45570de60fe100fbaec0b7.tar.gz |
Fix WSGIResponse on Python 3
HTTP body must be bytes. Don't check if __iter__() method to check if content
is a list or tuple, because bytes and str now have this method on Python 3.
Instead, check explicitly for bytes and str types using the six module.
Port wsgiwrappers test to Python 3, fix bytes/unicode issues:
* HTTP body must be bytes
* Filenames are native strings, request ensures that filenames are unicode
Diffstat (limited to 'paste/util')
0 files changed, 0 insertions, 0 deletions