summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-15 17:37:16 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-15 17:37:16 (GMT)
commit097a49e3e9b92ec379eb74fd021dc5f3c07fc625 (patch)
treeaf1c5819b07e46ecc85197f779af75f0ffb2b2b4
parent4af23d7ddd95ed879670ae6159c1d76a2feca4a7 (diff)
parentb26067a92fbeb9d82597e7c7602a20577f2fee86 (diff)
downloadcpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.zip
cpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.tar.gz
cpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.tar.bz2
Merge heads 3.6
-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