diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-05 22:58:11 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-06 11:52:45 -0700 |
commit | b86ef9fd0432a0b7774b4566f02721340124a7e9 (patch) | |
tree | 4a0258af9d326295be093aac6364eb6114395f76 /test/pathod/tutils.py | |
parent | c4ac19be9fd6ab1186783d23774cc0c500677137 (diff) | |
download | mitmproxy-b86ef9fd0432a0b7774b4566f02721340124a7e9.tar.gz mitmproxy-b86ef9fd0432a0b7774b4566f02721340124a7e9.tar.bz2 mitmproxy-b86ef9fd0432a0b7774b4566f02721340124a7e9.zip |
Py3: Use BytesIO in tutils.render
Diffstat (limited to 'test/pathod/tutils.py')
-rw-r--r-- | test/pathod/tutils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pathod/tutils.py b/test/pathod/tutils.py index 56cd2002..bf5e3165 100644 --- a/test/pathod/tutils.py +++ b/test/pathod/tutils.py @@ -3,6 +3,7 @@ import re import shutil import requests from six.moves import cStringIO as StringIO +from six import BytesIO import urllib from netlib import tcp @@ -147,6 +148,6 @@ test_data = utils.Data(__name__) def render(r, settings=language.Settings()): r = r.resolve(settings) - s = StringIO() + s = BytesIO() assert language.serve(r, s, settings) return s.getvalue() |