summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-15 17:35:41 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-15 17:35:41 (GMT)
commitb26067a92fbeb9d82597e7c7602a20577f2fee86 (patch)
treef0416e966933d3eccbeea094e6b8460411ed3158 /Lib
parent03179ef3a827704eab183c0db38e8ca0bf3e9f1c (diff)
downloadcpython-b26067a92fbeb9d82597e7c7602a20577f2fee86.zip
cpython-b26067a92fbeb9d82597e7c7602a20577f2fee86.tar.gz
cpython-b26067a92fbeb9d82597e7c7602a20577f2fee86.tar.bz2
asyncio: Drop debug code
Diffstat (limited to 'Lib')
-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