MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / __exit__

Method __exit__

python/pythonmonkey/lib/wtfpm.py:35–42  ·  view source on GitHub ↗
(self, errType, errValue, traceback)

Source from the content-addressed store, hash-verified

33 pass
34
35 def __exit__(self, errType, errValue, traceback):
36 if errType is None: # no exception
37 return
38 elif issubclass(errType, KeyboardInterrupt): # except KeyboardInterrupt:
39 printTimersDebugInfo()
40 return True # exception suppressed
41 else: # other exceptions
42 return False

Callers

nothing calls this directly

Calls 1

printTimersDebugInfoFunction · 0.85

Tested by

no test coverage detected