mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
asyncio: Fix a typo in CoroWrapper
__slot__ => __slots__
This commit is contained in:
parent
3763f2bc07
commit
4d7a29c5de
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ _DEBUG = False
|
|||
class CoroWrapper:
|
||||
"""Wrapper for coroutine in _DEBUG mode."""
|
||||
|
||||
__slot__ = ['gen', 'func']
|
||||
__slots__ = ['gen', 'func']
|
||||
|
||||
def __init__(self, gen, func):
|
||||
assert inspect.isgenerator(gen), gen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue