gh-120804: remove is_active
method from internal child watchers implementation in asyncio (#121124)
This commit is contained in:
parent
6e63d84e43
commit
ef3c400434
@ -867,9 +867,6 @@ class _PidfdChildWatcher:
|
|||||||
recent (5.3+) kernels.
|
recent (5.3+) kernels.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def is_active(self):
|
|
||||||
return True
|
|
||||||
|
|
||||||
def add_child_handler(self, pid, callback, *args):
|
def add_child_handler(self, pid, callback, *args):
|
||||||
loop = events.get_running_loop()
|
loop = events.get_running_loop()
|
||||||
pidfd = os.pidfd_open(pid)
|
pidfd = os.pidfd_open(pid)
|
||||||
@ -911,9 +908,6 @@ class _ThreadedChildWatcher:
|
|||||||
self._pid_counter = itertools.count(0)
|
self._pid_counter = itertools.count(0)
|
||||||
self._threads = {}
|
self._threads = {}
|
||||||
|
|
||||||
def is_active(self):
|
|
||||||
return True
|
|
||||||
|
|
||||||
def __del__(self, _warn=warnings.warn):
|
def __del__(self, _warn=warnings.warn):
|
||||||
threads = [thread for thread in list(self._threads.values())
|
threads = [thread for thread in list(self._threads.values())
|
||||||
if thread.is_alive()]
|
if thread.is_alive()]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user