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

Method __exit__

mitmproxy/test/taddons.py:40–44  ·  view source on GitHub ↗
(self, exc_type, exc_value, traceback)

Source from the content-addressed store, hash-verified

38 return self
39
40 def __exit__(self, exc_type, exc_value, traceback):
41 if self.owns_loop and not self.master.event_loop.is_closed():
42 # Close the loop if we created it
43 self.master.event_loop.close()
44 return False
45
46 async def cycle(self, addon, f):
47 """

Callers

nothing calls this directly

Calls 2

is_closedMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected