Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec7922c

Browse files
author
Guido van Rossum
committed
asyncio: Update some comments.
1 parent 1f683bb commit ec7922c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/asyncio/events.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _run(self):
4242

4343

4444
def make_handle(callback, args):
45-
# TODO: Inline this?
45+
# TODO: Inline this? Or make it a private EventLoop method?
4646
assert not isinstance(callback, Handle), 'A Handle is not a callback'
4747
return Handle(callback, args)
4848

@@ -338,7 +338,6 @@ def get_event_loop(self):
338338

339339
def set_event_loop(self, loop):
340340
"""Set the event loop."""
341-
# TODO: The isinstance() test violates the PEP.
342341
self._set_called = True
343342
assert loop is None or isinstance(loop, AbstractEventLoop)
344343
self._loop = loop
@@ -375,7 +374,6 @@ def get_event_loop_policy():
375374
def set_event_loop_policy(policy):
376375
"""XXX"""
377376
global _event_loop_policy
378-
# TODO: The isinstance() test violates the PEP.
379377
assert policy is None or isinstance(policy, AbstractEventLoopPolicy)
380378
_event_loop_policy = policy
381379

0 commit comments

Comments
 (0)