From: Victor Stinner Date: Thu, 16 Jan 2014 00:55:29 +0000 (+0100) Subject: asyncio: Fix CoroWrapper (fix my previous commit) X-Git-Tag: v3.4.0b3~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bac7793b5b9145b350d7e7bad1c3af99a10103b7;p=python asyncio: Fix CoroWrapper (fix my previous commit) Add __name__ and __doc__ to __slots__ --- diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 36404687a5..ec04d2f6fa 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