Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef3c400

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

File tree

1 file changed

+0
-6
lines changed
Filter options

1 file changed

+0
-6
lines changed

‎Lib/asyncio/unix_events.py

Copy file name to clipboardExpand all lines: Lib/asyncio/unix_events.py
-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.