Skip to content

Commit

Permalink
remove is_active methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaraditya303 committed Jun 28, 2024
1 parent 58a3580 commit 9c0a0a2
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 9c0a0a2

Please sign in to comment.