diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-03 18:41:49 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-03 18:41:49 (GMT) |
commit | 38a66adccbef4a2b2e0ad57024a2398939f47ec2 (patch) | |
tree | b5663d1f8cd3f844cddba6794d0cbc262c5cc4db /Lib/wsgiref/util.py | |
parent | ffe431d8bda82db8e478930fc46a0764fcbe879b (diff) | |
download | cpython-38a66adccbef4a2b2e0ad57024a2398939f47ec2.zip cpython-38a66adccbef4a2b2e0ad57024a2398939f47ec2.tar.gz cpython-38a66adccbef4a2b2e0ad57024a2398939f47ec2.tar.bz2 |
Issue #4718: Adapt the wsgiref package so that it actually works with Python 3.x,
in accordance with http://www.wsgi.org/wsgi/Amendments_1.0
Diffstat (limited to 'Lib/wsgiref/util.py')
-rw-r--r-- | Lib/wsgiref/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py index 2686b66..937be60 100644 --- a/Lib/wsgiref/util.py +++ b/Lib/wsgiref/util.py @@ -149,8 +149,8 @@ def setup_testing_defaults(environ): environ.setdefault('wsgi.multithread', 0) environ.setdefault('wsgi.multiprocess', 0) - from io import StringIO - environ.setdefault('wsgi.input', StringIO("")) + from io import StringIO, BytesIO + environ.setdefault('wsgi.input', BytesIO()) environ.setdefault('wsgi.errors', StringIO()) environ.setdefault('wsgi.url_scheme',guess_scheme(environ)) |