From ef3c400434eab53e358ebfa5da0411fab722cafb Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Fri, 28 Jun 2024 17:23:56 +0530 Subject: [PATCH] gh-120804: remove `is_active` method from internal child watchers implementation in asyncio (#121124) --- Lib/asyncio/unix_events.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index c22d0777b0b..2796e397c0e 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 @@ def __init__(self): 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()]