]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120804: remove `is_active` method from internal child watchers implementation...
authorKumar Aditya <kumaraditya@python.org>
Fri, 28 Jun 2024 11:53:56 +0000 (17:23 +0530)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2024 11:53:56 +0000 (17:23 +0530)
Lib/asyncio/unix_events.py

index c22d0777b0b3be7e55e43a6e3d6c2a210e8da4f3..2796e397c0e84d8d1090927020e554b2e017939b 100644 (file)
@@ -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()]