mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Py3: Use cStringIO from six.moves
This commit is contained in:
parent
3a9e03ea1e
commit
b71ef054b5
@ -1,10 +1,10 @@
|
|||||||
import StringIO
|
|
||||||
from pathod import log
|
from pathod import log
|
||||||
from netlib.exceptions import TcpDisconnect
|
from netlib.exceptions import TcpDisconnect
|
||||||
import netlib.tcp
|
|
||||||
|
from six.moves import cStringIO
|
||||||
|
|
||||||
|
|
||||||
class DummyIO(StringIO.StringIO):
|
class DummyIO(cStringIO):
|
||||||
|
|
||||||
def start_log(self, *args, **kwargs):
|
def start_log(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user