]> granicus.if.org Git - python/commitdiff
asyncio: Fix a typo in CoroWrapper
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 16 Jan 2014 00:38:24 +0000 (01:38 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 16 Jan 2014 00:38:24 +0000 (01:38 +0100)
__slot__ => __slots__

Lib/asyncio/tasks.py

index 406bcb936867aba1a23de99b430ae4f4bdb0f221..36404687a5717483759fa8ded7060b931d375c76 100644 (file)
@@ -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