From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 54A0A158089 for ; Tue, 26 Sep 2023 05:37:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F72A2BC01F; Tue, 26 Sep 2023 05:37:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4EE4C2BC01F for ; Tue, 26 Sep 2023 05:37:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F0E1B335CE3 for ; Tue, 26 Sep 2023 05:36:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5A338C3E for ; Tue, 26 Sep 2023 05:36:56 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1695705261.34e4d5655360d135dbf2cd3a073d07d96e23cf74.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/util/_eventloop/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/util/_eventloop/asyncio_event_loop.py X-VCS-Directories: lib/portage/util/_eventloop/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 34e4d5655360d135dbf2cd3a073d07d96e23cf74 X-VCS-Branch: master Date: Tue, 26 Sep 2023 05:36:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8c081d8c-f9ee-427a-8732-bdaa68974928 X-Archives-Hash: 73f316fb1fa20ffffa898cd2f113291d commit: 34e4d5655360d135dbf2cd3a073d07d96e23cf74 Author: Zac Medico gentoo org> AuthorDate: Tue Sep 26 05:09:53 2023 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Sep 26 05:14:21 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=34e4d565 Remove deprecated AbstractChildWatcher usage Fixes this DeprecationWarning triggered by lib/portage/tests/util/futures/asyncio/test_event_loop_in_fork.py: lib/portage/util/_eventloop/asyncio_event_loop.py:138: DeprecationWarning: 'AbstractChildWatcher' is deprecated as of Python 3.12 and will be removed in Python 3.14. class _ChildWatcherThreadSafetyWrapper(_AbstractChildWatcher): Signed-off-by: Zac Medico gentoo.org> lib/portage/util/_eventloop/asyncio_event_loop.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/portage/util/_eventloop/asyncio_event_loop.py b/lib/portage/util/_eventloop/asyncio_event_loop.py index 88933af9d2..37b5b2706c 100644 --- a/lib/portage/util/_eventloop/asyncio_event_loop.py +++ b/lib/portage/util/_eventloop/asyncio_event_loop.py @@ -1,4 +1,4 @@ -# Copyright 2018-2021 Gentoo Authors +# Copyright 2018-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 import os @@ -6,7 +6,6 @@ import signal import asyncio as _real_asyncio from asyncio.events import AbstractEventLoop as _AbstractEventLoop -from asyncio.unix_events import AbstractChildWatcher as _AbstractChildWatcher import portage @@ -135,7 +134,7 @@ class AsyncioEventLoop(_AbstractEventLoop): pass -class _ChildWatcherThreadSafetyWrapper(_AbstractChildWatcher): +class _ChildWatcherThreadSafetyWrapper: def __init__(self, loop, real_watcher): self._loop = loop self._real_watcher = real_watcher