File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def _run(self):
4242
4343
4444def 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():
375374def 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
You can’t perform that action at this time.
0 commit comments