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

Method line

Lib/traceback.py:390–395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

388
389 @property
390 def line(self):
391 self._set_lines()
392 if self._lines is None:
393 return None
394 # return only the first line, stripped
395 return self._lines.partition("\n")[0].strip()
396
397
398def walk_stack(f):

Callers

nothing calls this directly

Calls 3

_set_linesMethod · 0.95
stripMethod · 0.45
partitionMethod · 0.45

Tested by

no test coverage detected