mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
[3.11] remove redundant call to attach_loop in watcher (GH-110847) (#110870)
(cherry picked from commit 596589104f
)
This commit is contained in:
parent
5c55f50a71
commit
fd1b314cd3
1 changed files with 0 additions and 2 deletions
|
@ -1443,8 +1443,6 @@ class _UnixDefaultEventLoopPolicy(events.BaseDefaultEventLoopPolicy):
|
|||
with events._lock:
|
||||
if self._watcher is None: # pragma: no branch
|
||||
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