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

Function format_coroutine

Lib/test/test_asyncio/test_tasks.py:34–44  ·  view source on GitHub ↗
(qualname, state, src, source_traceback, generator=False)

Source from the content-addressed store, hash-verified

32
33
34def format_coroutine(qualname, state, src, source_traceback, generator=False):
35 if generator:
36 state = '%s' % state
37 else:
38 state = '%s, defined' % state
39 if source_traceback is not None:
40 frame = source_traceback[-1]
41 return ('coro=<%s() %s at %s> created at %s:%s'
42 % (qualname, state, src, frame[0], frame[1]))
43 else:
44 return 'coro=<%s() %s at %s>' % (qualname, state, src)
45
46
47def get_innermost_context(exc):

Callers 1

test_task_reprMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…