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

Function extract

tools/python-3.11.9-amd64/Lib/warnings.py:525–528  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

523 if coro.cr_origin is not None:
524 import linecache, traceback
525 def extract():
526 for filename, lineno, funcname in reversed(coro.cr_origin):
527 line = linecache.getline(filename, lineno)
528 yield (filename, lineno, funcname, line)
529 msg_lines.append("Coroutine created at (most recent call last)\n")
530 msg_lines += traceback.format_list(list(extract()))
531 msg = "".join(msg_lines).rstrip("\n")

Callers 1

Calls 1

getlineMethod · 0.45

Tested by

no test coverage detected