mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Asyncio issue 222 / PR 231 (Victor Stinner) -- fix @coroutine functions without __name__.
This commit is contained in:
parent
4590c3d944
commit
0a9933ebf3
5 changed files with 70 additions and 32 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue