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

Function _format_note

Lib/traceback.py:996–998  ·  view source on GitHub ↗
(note, indent, theme)

Source from the content-addressed store, hash-verified

994
995
996def _format_note(note, indent, theme):
997 for l in note.split("\n"):
998 yield f"{indent}{theme.note}{l}{theme.reset}\n"
999
1000
1001class _ExceptionPrintContext:

Callers 1

format_exception_onlyMethod · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…