aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-23 12:40:30 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-23 12:40:30 +1300
commit3c1db00ebb2aa0596840cda6a60e2af3d11a656b (patch)
tree358190944f19708620a10b11730190ecfaee3052 /libmproxy/console.py
parent39207ffdd280af854d521f810f6082d42943eefa (diff)
downloadmitmproxy-3c1db00ebb2aa0596840cda6a60e2af3d11a656b.tar.gz
mitmproxy-3c1db00ebb2aa0596840cda6a60e2af3d11a656b.tar.bz2
mitmproxy-3c1db00ebb2aa0596840cda6a60e2af3d11a656b.zip
Remove first iteration playback/record.
Bonus: unit test coverage goes from 70% to 94% with one commit. ;)
Diffstat (limited to 'libmproxy/console.py')
-rw-r--r--libmproxy/console.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py
index fbd3617a..187502a6 100644
--- a/libmproxy/console.py
+++ b/libmproxy/console.py
@@ -19,7 +19,6 @@ import cStringIO
import urwid.curses_display
import urwid
import controller, utils, filt, proxy, flow
-import recorder
class Stop(Exception): pass
@@ -731,9 +730,6 @@ class ConsoleState(flow.State):
self.set_focus(self.focus)
return ret
- def start_recording(self, recorder):
- self.store = recorder
-
def get_focus(self):
if not self.view or self.focus is None:
return None, None
@@ -812,8 +808,6 @@ class ConsoleMaster(flow.FlowMaster):
self.stickycookie = None
self.stickyhosts = {}
- if getattr(options, "cache", None) is not None:
- self.state.start_recording(recorder.Recorder(options))
def spawn_external_viewer(self, data, contenttype):
if contenttype: