From: Yury Selivanov Date: Thu, 15 Sep 2016 17:35:41 +0000 (-0400) Subject: asyncio: Drop debug code X-Git-Tag: v3.6.0b2~205^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b26067a92fbeb9d82597e7c7602a20577f2fee86;p=thirdparty%2FPython%2Fcpython.git asyncio: Drop debug code --- diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index d92f67d590e9..72ffb44e9577 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