summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-10-30 21:38:05 (GMT)
committerGuido van Rossum <guido@dropbox.com>2013-10-30 21:38:05 (GMT)
commitec7922cb3eef8c770e906478fad75951a0d69116 (patch)
tree38ae9bf032240e7d95e271a377383d283b071b8d /Lib/asyncio/events.py
parent1f683bbe71480e652c6be75cb88426aa6a7507a9 (diff)
downloadcpython-ec7922cb3eef8c770e906478fad75951a0d69116.zip
cpython-ec7922cb3eef8c770e906478fad75951a0d69116.tar.gz
cpython-ec7922cb3eef8c770e906478fad75951a0d69116.tar.bz2
asyncio: Update some comments.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 6ca5668..62f8e94 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -42,7 +42,7 @@ class Handle:
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 @@ class DefaultEventLoopPolicy(threading.local, AbstractEventLoopPolicy):
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 get_event_loop_policy():
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