diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-06-28 11:53:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 11:53:56 (GMT) |
commit | ef3c400434eab53e358ebfa5da0411fab722cafb (patch) | |
tree | 58a058622f827cdeddd8c810d1cc19f9090a5526 /Lib/asyncio/unix_events.py | |
parent | 6e63d84e43fdce3a5bdb899b024cf947d4e48900 (diff) | |
download | cpython-ef3c400434eab53e358ebfa5da0411fab722cafb.zip cpython-ef3c400434eab53e358ebfa5da0411fab722cafb.tar.gz cpython-ef3c400434eab53e358ebfa5da0411fab722cafb.tar.bz2 |
gh-120804: remove `is_active` method from internal child watchers implementation in asyncio (#121124)
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index c22d077..2796e39 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -867,9 +867,6 @@ class _PidfdChildWatcher: recent (5.3+) kernels. """ - def is_active(self): - return True - def add_child_handler(self, pid, callback, *args): loop = events.get_running_loop() pidfd = os.pidfd_open(pid) @@ -911,9 +908,6 @@ class _ThreadedChildWatcher: self._pid_counter = itertools.count(0) self._threads = {} - def is_active(self): - return True - def __del__(self, _warn=warnings.warn): threads = [thread for thread in list(self._threads.values()) if thread.is_alive()] |