mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Minor fixes
This commit is contained in:
parent
a4ac5b158f
commit
5e2a80fba1
@ -386,11 +386,10 @@ class ConsoleMaster(master.Master):
|
||||
)
|
||||
|
||||
def _write_flows(self, path, flows):
|
||||
f = open(path, "wb")
|
||||
fw = io.FlowWriter(f)
|
||||
for i in flows:
|
||||
fw.add(i)
|
||||
f.close()
|
||||
with open(path, "wb") as f:
|
||||
fw = io.FlowWriter(f)
|
||||
for i in flows:
|
||||
fw.add(i)
|
||||
|
||||
def save_one_flow(self, path, flow):
|
||||
return self._write_flows(path, [flow])
|
||||
|
Loading…
Reference in New Issue
Block a user