diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-17 00:27:02 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-17 00:27:02 +0200 |
commit | 6f3551e15f15d9d2697f27d952cc927e39aa5f51 (patch) | |
tree | 25d6b830e73e50735872fa0287fcf2ce11a5df56 /Lib | |
parent | 0f69e76204ca38a352c34a8edb7eb5e433c50cc2 (diff) | |
parent | bc434e205261fbe9afc45f5f601d2238ffbe09f9 (diff) | |
download | cpython-git-6f3551e15f15d9d2697f27d952cc927e39aa5f51.tar.gz |
(Merge 3.4) asyncio: Task.__repr__() now also handles CoroWrapper
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index e6fd3d380b..281bf608e8 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -190,7 +190,7 @@ class Task(futures.Future): i = len(res) text = self._coro.__name__ coro = self._coro - if inspect.isgenerator(coro): + if iscoroutine(coro): filename = coro.gi_code.co_filename if coro.gi_frame is not None: text += ' at %s:%s' % (filename, coro.gi_frame.f_lineno) |