aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/common.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-22 14:14:44 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-03-22 14:14:44 +1300
commit200498e7aa57effd7158c8d735f95c6556203a07 (patch)
treedb269287eae254461af3911362a665e3d1e9efa4 /libmproxy/console/common.py
parent572000aa039a789ba35d4ef14e0c096256d6997d (diff)
downloadmitmproxy-200498e7aa57effd7158c8d735f95c6556203a07.tar.gz
mitmproxy-200498e7aa57effd7158c8d735f95c6556203a07.tar.bz2
mitmproxy-200498e7aa57effd7158c8d735f95c6556203a07.zip
Simplify the way in which path prompts keep state
In the past, we kept the last path the user specified for a number of different path types to pre-seed the path prompt. Now, we no longer distinguish between types, and pre-seed with the last used directory regardless.
Diffstat (limited to 'libmproxy/console/common.py')
-rw-r--r--libmproxy/console/common.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py
index e4ecde91..c0593af4 100644
--- a/libmproxy/console/common.py
+++ b/libmproxy/console/common.py
@@ -193,7 +193,6 @@ def raw_format_flow(f, focus, extended, padding):
def save_data(path, data, master, state):
if not path:
return
- state.last_saveload = path
path = os.path.expanduser(path)
try:
with file(path, "wb") as f:
@@ -205,7 +204,6 @@ def save_data(path, data, master, state):
def ask_save_path(prompt, data, master, state):
signals.status_prompt_path.send(
prompt = prompt,
- text = state.last_saveload,
callback = save_data,
args = (data, master, state)
)