mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +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:
|
||||
def __init__(self, path: str) -> None:
|
||||
if path == "-":
|
||||
f = sys.stdout # type: io.TextIO
|
||||
f = sys.stdout # type: io.TextIO
|
||||
else:
|
||||
f = open(path, "wb")
|
||||
self.w = io.FlowWriter(f)
|
||||
|
Loading…
Reference in New Issue
Block a user