Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bac7793

Browse files
committed
asyncio: Fix CoroWrapper (fix my previous commit)
Add __name__ and __doc__ to __slots__
1 parent 4d7a29c commit bac7793

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/asyncio/tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232

3333

3434
class CoroWrapper:
35-
"""Wrapper for coroutine in _DEBUG mode."""
36-
37-
__slots__ = ['gen', 'func']
35+
__slots__ = ['gen', 'func', '__name__', '__doc__']
3836

3937
def __init__(self, gen, func):
4038
assert inspect.isgenerator(gen), gen

0 commit comments

Comments
 (0)