Skip to content

Commit

Permalink
pythongh-120804: remove is_active method from internal child watche…
Browse files Browse the repository at this point in the history
…rs implementation in asyncio (python#121124)
  • Loading branch information
kumaraditya303 authored and estyxx committed Jul 17, 2024
1 parent 4b2dac9 commit d0630a8
Showing 1 changed file with 0 additions and 6 deletions.
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

0 comments on commit d0630a8

Please sign in to comment.