diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-15 17:37:16 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-15 17:37:16 (GMT) |
commit | 097a49e3e9b92ec379eb74fd021dc5f3c07fc625 (patch) | |
tree | af1c5819b07e46ecc85197f779af75f0ffb2b2b4 | |
parent | 4af23d7ddd95ed879670ae6159c1d76a2feca4a7 (diff) | |
parent | b26067a92fbeb9d82597e7c7602a20577f2fee86 (diff) | |
download | cpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.zip cpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.tar.gz cpython-097a49e3e9b92ec379eb74fd021dc5f3c07fc625.tar.bz2 |
Merge heads 3.6
-rw-r--r-- | Lib/asyncio/coroutines.py | 5 |
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 |