diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-24 09:53:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-24 09:53:18 -0700 |
commit | e9eee5a6da4aefd88fdb68a33f555d34fc82cb10 (patch) | |
tree | 8b49fb48566cf4316729648efc36f60a8bdc67d6 | |
parent | c5f3bb83f6bdfee820ce4eeeb92e881979c0ff78 (diff) | |
parent | 71b6b84f29d74629656794504361b06f80909a7e (diff) | |
download | mitmproxy-e9eee5a6da4aefd88fdb68a33f555d34fc82cb10.tar.gz mitmproxy-e9eee5a6da4aefd88fdb68a33f555d34fc82cb10.tar.bz2 mitmproxy-e9eee5a6da4aefd88fdb68a33f555d34fc82cb10.zip |
Merge pull request #1423 from dufferzafar/fix-search
Fix console search on Python 3
-rw-r--r-- | mitmproxy/console/searchable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mitmproxy/console/searchable.py b/mitmproxy/console/searchable.py index c60d1cd9..d58d3d13 100644 --- a/mitmproxy/console/searchable.py +++ b/mitmproxy/console/searchable.py @@ -78,9 +78,9 @@ class Searchable(urwid.ListBox): return # Start search at focus + 1 if backwards: - rng = xrange(len(self.body) - 1, -1, -1) + rng = range(len(self.body) - 1, -1, -1) else: - rng = xrange(1, len(self.body) + 1) + rng = range(1, len(self.body) + 1) for i in rng: off = (self.focus_position + i) % len(self.body) w = self.body[off] |