mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 11:17:24 +00:00
Use BytesIO instead of StringIO
This commit is contained in:
parent
cff54edf6b
commit
435bfeca0b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from six.moves import cStringIO as StringIO
|
||||
from six import BytesIO
|
||||
|
||||
from pathod.language import actions
|
||||
from pathod import language
|
||||
|
|
@ -61,7 +61,7 @@ class TestInject:
|
|||
assert v.offset == "r"
|
||||
|
||||
def test_serve(self):
|
||||
s = StringIO()
|
||||
s = BytesIO()
|
||||
r = next(language.parse_pathod("400:i0,'foo'"))
|
||||
assert language.serve(r, s, {})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue