diff options
| author | Victor Stinner <vstinner@redhat.com> | 2015-04-14 16:38:17 +0200 |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2015-04-14 16:53:00 +0200 |
| commit | b08ee4008dc939fff3aa86f040da02deb602f5db (patch) | |
| tree | 7dd3fdc7272ca72468bb4ec2a037882d8077f700 /asyncio/futures.py | |
| parent | 173ff866346d8210acfa268239aa99d907fc38a2 (diff) | |
| download | trollius-git-issue_222.tar.gz | |
Fix @coroutine for functions without __name__issue_222
Issue #222: Fix the @coroutine decorator for functions without __name__
attribute like functools.partial().
Enhance also the representation of a CoroWrapper if the coroutine
function is a functools.partial().
Diffstat (limited to 'asyncio/futures.py')
| -rw-r--r-- | asyncio/futures.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/futures.py b/asyncio/futures.py index 2c741fd..74a99ba 100644 --- a/asyncio/futures.py +++ b/asyncio/futures.py @@ -162,7 +162,7 @@ class Future: cb = '' def format_cb(callback): - return events._format_callback(callback, ()) + return events._format_callback_source(callback, ()) if size == 1: cb = format_cb(cb[0]) |
