From 2502d2f2299f3144319c0f3b9e9eada52810f430 Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Mon, 9 Oct 2023 20:54:49 +0900 Subject: [PATCH] doc: Mention the child watcher API deprecation issue --- src/aiotools/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aiotools/server.py b/src/aiotools/server.py index 4cee7a4..a570809 100644 --- a/src/aiotools/server.py +++ b/src/aiotools/server.py @@ -229,6 +229,7 @@ def helper(*args, **kwargs): def setup_child_watcher(loop: asyncio.AbstractEventLoop) -> None: if sys.version_info < (3, 12, 0): + # see python/cpython#94597 (issue) and python/cpython#98215 (pr) try: watcher_cls = getattr(asyncio, "PidfdChildWatcher", None) if _has_pidfd and watcher_cls: