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

Skip to content

Commit 4d7a29c

Browse files
committed
asyncio: Fix a typo in CoroWrapper
__slot__ => __slots__
1 parent 3763f2b commit 4d7a29c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/asyncio/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class CoroWrapper:
3535
"""Wrapper for coroutine in _DEBUG mode."""
3636

37-
__slot__ = ['gen', 'func']
37+
__slots__ = ['gen', 'func']
3838

3939
def __init__(self, gen, func):
4040
assert inspect.isgenerator(gen), gen

0 commit comments

Comments
 (0)