diff options
| author | Guido van Rossum <guido@python.org> | 2007-08-08 17:01:45 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-08-08 17:01:45 (GMT) |
| commit | 6a10e02aa644ad7f9c1f2ab6dd249c1a414c0c8b (patch) | |
| tree | f78dd670c175f469bb0c312d68ddb4b9ac3eabe7 /Lib/wsgiref/util.py | |
| parent | 0269b91030c87db7f0d3c735367ab7ea6277a918 (diff) | |
| download | cpython-6a10e02aa644ad7f9c1f2ab6dd249c1a414c0c8b.zip cpython-6a10e02aa644ad7f9c1f2ab6dd249c1a414c0c8b.tar.gz cpython-6a10e02aa644ad7f9c1f2ab6dd249c1a414c0c8b.tar.bz2 | |
Switch wsgiref to io.{StringIO,BytesIO}. This shuts up the test failures.
(I'm not sure about it actually working though.)
Diffstat (limited to 'Lib/wsgiref/util.py')
| -rw-r--r-- | Lib/wsgiref/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/wsgiref/util.py b/Lib/wsgiref/util.py index 5b44eda..a4ca02f 100644 --- a/Lib/wsgiref/util.py +++ b/Lib/wsgiref/util.py @@ -149,7 +149,7 @@ def setup_testing_defaults(environ): environ.setdefault('wsgi.multithread', 0) environ.setdefault('wsgi.multiprocess', 0) - from StringIO import StringIO + from io import StringIO environ.setdefault('wsgi.input', StringIO("")) environ.setdefault('wsgi.errors', StringIO()) environ.setdefault('wsgi.url_scheme',guess_scheme(environ)) |
