MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _format_exc

Method _format_exc

tools/python-3.11.9-amd64/Lib/pdb.py:1645–1646  ·  view source on GitHub ↗
(self, exc: BaseException)

Source from the content-addressed store, hash-verified

1643 self.run(target.code)
1644
1645 def _format_exc(self, exc: BaseException):
1646 return traceback.format_exception_only(exc)[-1].strip()
1647
1648 def _getsourcelines(self, obj):
1649 # GH-103319

Callers 1

_safe_reprMethod · 0.95

Calls 2

stripMethod · 0.80
format_exception_onlyMethod · 0.80

Tested by

no test coverage detected