mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
remove redundant call to attach_loop in watcher (#110847)
This commit is contained in:
parent
4110cfec12
commit
596589104f
1 changed files with 0 additions and 2 deletions
|
@ -1465,8 +1465,6 @@ class _UnixDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
|
|||
self._watcher = PidfdChildWatcher()
|
||||
else:
|
||||
self._watcher = ThreadedChildWatcher()
|
||||
if threading.current_thread() is threading.main_thread():
|
||||
self._watcher.attach_loop(self._local._loop)
|
||||
|
||||
def set_event_loop(self, loop):
|
||||
"""Set the event loop.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue