mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
save_flow now uses with, and pyperclip requirement updated to 1.5.8
This commit is contained in:
parent
1455707eb1
commit
64c02a16c3
@ -172,9 +172,8 @@ def save_body(path, master, state, content):
|
||||
state.last_saveload = path
|
||||
path = os.path.expanduser(path)
|
||||
try:
|
||||
f = file(path, "wb")
|
||||
f.write(str(content))
|
||||
f.close()
|
||||
with file(path, "wb") as f:
|
||||
f.write(content)
|
||||
except IOError, v:
|
||||
master.statusbar.message(v.strerror)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user