mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fixed lint error
This commit is contained in:
parent
6e03231d25
commit
789fbd00d2
@ -13,7 +13,7 @@ from mitmproxy import io, http
|
|||||||
class Writer:
|
class Writer:
|
||||||
def __init__(self, path: str) -> None:
|
def __init__(self, path: str) -> None:
|
||||||
if path == "-":
|
if path == "-":
|
||||||
f = sys.stdout # type: io.TextIO
|
f = sys.stdout # type: io.TextIO
|
||||||
else:
|
else:
|
||||||
f = open(path, "wb")
|
f = open(path, "wb")
|
||||||
self.w = io.FlowWriter(f)
|
self.w = io.FlowWriter(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user