]> granicus.if.org Git - python/commitdiff
asyncio: Drop debug code
authorYury Selivanov <yury@magic.io>
Thu, 15 Sep 2016 17:35:41 +0000 (13:35 -0400)
committerYury Selivanov <yury@magic.io>
Thu, 15 Sep 2016 17:35:41 +0000 (13:35 -0400)
Lib/asyncio/coroutines.py

index d92f67d590e917a317cd537d56ae50f74b1434c6..72ffb44e957751bf3d7811a38ee43187396f5538 100644 (file)
@@ -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