MCPcopy Index your code
hub / github.com/python/cpython / exit

Method exit

Lib/test/test_optparse.py:42–43  ·  view source on GitHub ↗
(self, status=0, msg=None)

Source from the content-addressed store, hash-verified

40
41class InterceptingOptionParser(OptionParser):
42 def exit(self, status=0, msg=None):
43 raise InterceptedError(exit_status=status, exit_message=msg)
44
45 def error(self, msg):
46 raise InterceptedError(error_message=msg)

Callers 15

__main__.pyFile · 0.45
_get_awaited_by_tasksFunction · 0.45
testFunction · 0.45
executeFunction · 0.45
runsourceMethod · 0.45
mainFunction · 0.45
handle_permission_errorFunction · 0.45
__main__.pyFile · 0.45
_handle_runFunction · 0.45
_handle_live_runFunction · 0.45

Calls 1

InterceptedErrorClass · 0.85

Tested by

no test coverage detected