summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/coroutines.py')
-rw-r--r--Lib/asyncio/coroutines.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py
index d92f67d..72ffb44 100644
--- a/Lib/asyncio/coroutines.py
+++ b/Lib/asyncio/coroutines.py
@@ -276,10 +276,7 @@ def _format_coroutine(coro):
try:
coro_code = coro.gi_code
except AttributeError:
- try:
- coro_code = coro.cr_code
- except AttributeError:
- return repr(coro)
+ coro_code = coro.cr_code
try:
coro_frame = coro.gi_frame