mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
Merge heads 3.6
This commit is contained in:
commit
097a49e3e9
1 changed files with 1 additions and 4 deletions
|
@ -276,10 +276,7 @@ def _format_coroutine(coro):
|
||||||
try:
|
try:
|
||||||
coro_code = coro.gi_code
|
coro_code = coro.gi_code
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
try:
|
coro_code = coro.cr_code
|
||||||
coro_code = coro.cr_code
|
|
||||||
except AttributeError:
|
|
||||||
return repr(coro)
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
coro_frame = coro.gi_frame
|
coro_frame = coro.gi_frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue