diff options
author | Thomas Grainger <tagrain@gmail.com> | 2023-10-14 08:24:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 08:24:02 (GMT) |
commit | 596589104fe5a4d90cb145b2cc69b71cc9aa9f07 (patch) | |
tree | 78f9b99e7642cbeebf5cfbf5ae7dc871e7db2f37 /Lib/asyncio | |
parent | 4110cfec1233139b4e7c63459ba465ab80554e3e (diff) | |
download | cpython-596589104fe5a4d90cb145b2cc69b71cc9aa9f07.zip cpython-596589104fe5a4d90cb145b2cc69b71cc9aa9f07.tar.gz cpython-596589104fe5a4d90cb145b2cc69b71cc9aa9f07.tar.bz2 |
remove redundant call to attach_loop in watcher (#110847)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 65f0923..809f29e 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -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. |