summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-16 00:55:29 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-01-16 00:55:29 (GMT)
commitbac7793b5b9145b350d7e7bad1c3af99a10103b7 (patch)
tree573c1652157ef227e66cf31fc58fd440095b8be3 /Lib/asyncio
parent4d7a29c5de7019a1fd637ef2e84c009c0e384c8f (diff)
downloadcpython-bac7793b5b9145b350d7e7bad1c3af99a10103b7.zip
cpython-bac7793b5b9145b350d7e7bad1c3af99a10103b7.tar.gz
cpython-bac7793b5b9145b350d7e7bad1c3af99a10103b7.tar.bz2
asyncio: Fix CoroWrapper (fix my previous commit)
Add __name__ and __doc__ to __slots__
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/tasks.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 3640468..ec04d2f 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -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