summaryrefslogtreecommitdiff
path: root/asyncio/futures.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2015-04-14 16:38:17 +0200
committerVictor Stinner <vstinner@redhat.com>2015-04-14 16:53:00 +0200
commitb08ee4008dc939fff3aa86f040da02deb602f5db (patch)
tree7dd3fdc7272ca72468bb4ec2a037882d8077f700 /asyncio/futures.py
parent173ff866346d8210acfa268239aa99d907fc38a2 (diff)
downloadtrollius-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.py2
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])