MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / positions

Method positions

mitmproxy/tools/console/flowlist.py:49–55  ·  view source on GitHub ↗
(self, reverse=False)

Source from the content-addressed store, hash-verified

47 self.master = master
48
49 def positions(self, reverse=False):
50 # The stub implementation of positions can go once this issue is resolved:
51 # https://github.com/urwid/urwid/issues/294
52 ret = range(self.master.view.get_length())
53 if reverse:
54 return reversed(ret)
55 return ret
56
57 def view_changed(self):
58 self._modified()

Callers

nothing calls this directly

Calls 1

get_lengthMethod · 0.80

Tested by

no test coverage detected