diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-10-29 09:30:59 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-10-29 09:30:59 +1300 |
commit | 57d6650e8e1243a66fbaf3d4124c592638e8af91 (patch) | |
tree | fb7a9f218bf11f07be6978b97f0f2f9e7962002b /libmproxy/console/__init__.py | |
parent | 68f1000e429913593b7e963ab4a977aaa39a058d (diff) | |
download | mitmproxy-57d6650e8e1243a66fbaf3d4124c592638e8af91.tar.gz mitmproxy-57d6650e8e1243a66fbaf3d4124c592638e8af91.tar.bz2 mitmproxy-57d6650e8e1243a66fbaf3d4124c592638e8af91.zip |
Urwid 1.1 compatibility.
Diffstat (limited to 'libmproxy/console/__init__.py')
-rw-r--r-- | libmproxy/console/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index 1153bdcd..544fbd6e 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -431,7 +431,7 @@ class ConsoleMaster(flow.FlowMaster): return str(v) self.stream_path = path - + def _run_script_method(self, method, s, f): status, val = s.run(method, f) if val: @@ -1007,7 +1007,7 @@ class ConsoleMaster(flow.FlowMaster): self.eventlist.append(e) if len(self.eventlist) > EVENTLOG_SIZE: self.eventlist.pop(0) - self.eventlist.set_focus(len(self.eventlist)) + self.eventlist.set_focus(len(self.eventlist)-1) # Handlers def handle_log(self, l): |