diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-03 22:09:24 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-03 22:09:24 (GMT) |
commit | 491a912659a4aeb57c400f37b8059fa1ef7bed73 (patch) | |
tree | 94ffc1eb512bff47d248fef0d3ad10d7a8dffbbb /Lib/asyncio/events.py | |
parent | 9e80eeb22dde9740dada6d750e4dcb1712d070ab (diff) | |
download | cpython-491a912659a4aeb57c400f37b8059fa1ef7bed73.zip cpython-491a912659a4aeb57c400f37b8059fa1ef7bed73.tar.gz cpython-491a912659a4aeb57c400f37b8059fa1ef7bed73.tar.bz2 |
Issue #28600: Optimize loop.call_soon().
Run expensive type checks only in debug mode. In addition, stop
supporting passing handles to loop.run_in_executor.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r-- | Lib/asyncio/events.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py index 3a33646..b89b4b2 100644 --- a/Lib/asyncio/events.py +++ b/Lib/asyncio/events.py @@ -82,7 +82,6 @@ class Handle: '_source_traceback', '_repr', '__weakref__') def __init__(self, callback, args, loop): - assert not isinstance(callback, Handle), 'A Handle is not a callback' self._loop = loop self._callback = callback self._args = args |