summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/coroutines.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-15 17:35:59 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-15 17:35:59 (GMT)
commit57804577d2b40c5377ddb760f6b91e70be8fdab2 (patch)
treee75f97e12f26080c44bc679188031d653eaac637 /Lib/asyncio/coroutines.py
parent35cb7a62fe53c3399cbb50f6ef64622a5f8d9cec (diff)
parentb26067a92fbeb9d82597e7c7602a20577f2fee86 (diff)
downloadcpython-57804577d2b40c5377ddb760f6b91e70be8fdab2.zip
cpython-57804577d2b40c5377ddb760f6b91e70be8fdab2.tar.gz
cpython-57804577d2b40c5377ddb760f6b91e70be8fdab2.tar.bz2
Merge (asyncio)
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