Commit bac7793b authored by Victor Stinner's avatar Victor Stinner

asyncio: Fix CoroWrapper (fix my previous commit)

Add __name__ and __doc__ to __slots__
parent 4d7a29c5
......@@ -32,9 +32,7 @@ _DEBUG = False
class CoroWrapper:
"""Wrapper for coroutine in _DEBUG mode."""
__slots__ = ['gen', 'func']
__slots__ = ['gen', 'func', '__name__', '__doc__']
def __init__(self, gen, func):
assert inspect.isgenerator(gen), gen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment