mirror of
https://github.com/python/cpython.git
synced 2025-07-31 15:14:22 +00:00
Issue #28003: Implement PEP 525 -- Asynchronous Generators.
This commit is contained in:
parent
b96ef55d49
commit
eb6364557f
27 changed files with 2189 additions and 96 deletions
|
@ -276,7 +276,10 @@ def _format_coroutine(coro):
|
|||
try:
|
||||
coro_code = coro.gi_code
|
||||
except AttributeError:
|
||||
coro_code = coro.cr_code
|
||||
try:
|
||||
coro_code = coro.cr_code
|
||||
except AttributeError:
|
||||
return repr(coro)
|
||||
|
||||
try:
|
||||
coro_frame = coro.gi_frame
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue