Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions without __name__.

This commit is contained in:
Guido van Rossum 2015-05-02 18:38:24 -07:00
parent 4590c3d944
commit 0a9933ebf3
5 changed files with 70 additions and 32 deletions

View file

@ -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])