diff options
author | Yury Selivanov <yury@magic.io> | 2016-09-15 17:35:59 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-09-15 17:35:59 (GMT) |
commit | 57804577d2b40c5377ddb760f6b91e70be8fdab2 (patch) | |
tree | e75f97e12f26080c44bc679188031d653eaac637 /Lib/asyncio/coroutines.py | |
parent | 35cb7a62fe53c3399cbb50f6ef64622a5f8d9cec (diff) | |
parent | b26067a92fbeb9d82597e7c7602a20577f2fee86 (diff) | |
download | cpython-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.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 |