Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove is_active methods
  • Loading branch information
kumaraditya303 committed Jun 28, 2024
commit 9c0a0a2cd2cfd5c9ce0dd8768e483e2ab25ca081
6 changes: 0 additions & 6 deletions Lib/asyncio/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()]
Expand Down