MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / pop

Method pop

mitmproxy/tools/console/window.py:107–117  ·  view source on GitHub ↗

Pop off the stack, return True if we're already at the top.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

105 self.call("layout_pushed", prev)
106
107 def pop(self, *args, **kwargs):
108 """
109 Pop off the stack, return True if we're already at the top.
110 """
111 if not self.overlay and len(self.stack) == 1:
112 return True
113 self.call("layout_popping")
114 if self.overlay:
115 self.overlay = None
116 else:
117 self.stack.pop()
118
119 def call(self, name, *args, **kwargs):
120 """

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected