[Python-checkins] cpython: asyncio: Fix CoroWrapper (fix my previous commit)

victor.stinner python-checkins at python.org
Thu Jan 16 01:55:43 CET 2014


http://hg.python.org/cpython/rev/f07161c4f3aa
changeset: 88494:f07161c4f3aa
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Jan 16 01:55:29 2014 +0100
summary:
 asyncio: Fix CoroWrapper (fix my previous commit)
Add __name__ and __doc__ to __slots__
files:
 Lib/asyncio/tasks.py | 4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -32,9 +32,7 @@
 
 
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /