Skip to content

Commit ef3c400

Browse files
gh-120804: remove is_active method from internal child watchers implementation in asyncio (#121124)
1 parent 6e63d84 commit ef3c400

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Lib/asyncio/unix_events.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -867,9 +867,6 @@ class _PidfdChildWatcher:
867867
recent (5.3+) kernels.
868868
"""
869869

870-
def is_active(self):
871-
return True
872-
873870
def add_child_handler(self, pid, callback, *args):
874871
loop = events.get_running_loop()
875872
pidfd = os.pidfd_open(pid)
@@ -911,9 +908,6 @@ def __init__(self):
911908
self._pid_counter = itertools.count(0)
912909
self._threads = {}
913910

914-
def is_active(self):
915-
return True
916-
917911
def __del__(self, _warn=warnings.warn):
918912
threads = [thread for thread in list(self._threads.values())
919913
if thread.is_alive()]

0 commit comments

Comments
 (0)