aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/__init__.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/__init__.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/__init__.py')
-rw-r--r--libmproxy/console/__init__.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index d8eb8a41..34abe6f4 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -31,8 +31,6 @@ class ConsoleState(flow.State):
self.view_mode = common.VIEW_LIST
self.view_flow_mode = common.VIEW_FLOW_REQUEST
- self.last_script = ""
- self.last_saveload = ""
self.flowsettings = weakref.WeakKeyDictionary()
def add_flow_setting(self, flow, key, value):
@@ -258,7 +256,6 @@ class ConsoleMaster(flow.FlowMaster):
self._run_script_method("error", s, f)
s.unload()
self.refresh_flow(f)
- self.state.last_script = command
def set_script(self, command):
if not command:
@@ -266,7 +263,6 @@ class ConsoleMaster(flow.FlowMaster):
ret = self.load_script(command)
if ret:
signals.status_message.send(message=ret)
- self.state.last_script = command
def toggle_eventlog(self):
self.eventlog = not self.eventlog
@@ -501,7 +497,6 @@ class ConsoleMaster(flow.FlowMaster):
self.help_context = flowview.help_context
def _write_flows(self, path, flows):
- self.state.last_saveload = path
if not path:
return
path = os.path.expanduser(path)
@@ -527,7 +522,6 @@ class ConsoleMaster(flow.FlowMaster):
return ret or "Flows loaded from %s"%path
def load_flows_path(self, path):
- self.state.last_saveload = path
reterr = None
try:
flow.FlowMaster.load_flows_file(self, path)