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

Method tbs_for_leaf

Lib/test/test_exception_group.py:715–718  ·  view source on GitHub ↗
(leaf, eg)

Source from the content-addressed store, hash-verified

713 getattr(part, '__notes__', None))
714
715 def tbs_for_leaf(leaf, eg):
716 for e, tbs in leaf_generator(eg):
717 if e is leaf:
718 return tbs
719
720 def tb_linenos(tbs):
721 return [tb.tb_lineno for tb in tbs if tb]

Callers

nothing calls this directly

Calls 1

leaf_generatorFunction · 0.85

Tested by

no test coverage detected