[Python-checkins] cpython: asyncio: Update some comments.
guido.van.rossum
python-checkins at python.org
Wed Oct 30 22:53:02 CET 2013
http://hg.python.org/cpython/rev/0e0e8b8840b4
changeset: 86786:0e0e8b8840b4
user: Guido van Rossum <guido at dropbox.com>
date: Wed Oct 30 14:38:05 2013 -0700
summary:
asyncio: Update some comments.
files:
Lib/asyncio/events.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -42,7 +42,7 @@
def make_handle(callback, args):
- # TODO: Inline this?
+ # TODO: Inline this? Or make it a private EventLoop method?
assert not isinstance(callback, Handle), 'A Handle is not a callback'
return Handle(callback, args)
@@ -338,7 +338,6 @@
def set_event_loop(self, loop):
"""Set the event loop."""
- # TODO: The isinstance() test violates the PEP.
self._set_called = True
assert loop is None or isinstance(loop, AbstractEventLoop)
self._loop = loop
@@ -375,7 +374,6 @@
def set_event_loop_policy(policy):
"""XXX"""
global _event_loop_policy
- # TODO: The isinstance() test violates the PEP.
assert policy is None or isinstance(policy, AbstractEventLoopPolicy)
_event_loop_policy = policy
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list