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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8DC67158083 for ; Sun, 1 Sep 2024 07:02:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 737762BC01A; Sun, 1 Sep 2024 07:02:50 +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 586D02BC01A for ; Sun, 1 Sep 2024 07:02:50 +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 518C83430B8 for ; Sun, 1 Sep 2024 07:02:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B70281F33 for ; Sun, 1 Sep 2024 07:02:47 +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: <1725173984.b30ddb1913e8aa2947d20e43f455d2060aa6257f.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/util/futures/_asyncio/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/util/futures/_asyncio/__init__.py X-VCS-Directories: lib/portage/util/futures/_asyncio/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: b30ddb1913e8aa2947d20e43f455d2060aa6257f X-VCS-Branch: master Date: Sun, 1 Sep 2024 07:02:47 +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: 0f438860-eee9-4fea-887f-d7f1c5d34c2d X-Archives-Hash: a88f3f7219e4037caa95c06bac47d9a8 commit: b30ddb1913e8aa2947d20e43f455d2060aa6257f Author: Zac Medico gentoo org> AuthorDate: Sat Aug 31 20:08:35 2024 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Sep 1 06:59:44 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=b30ddb19 asyncio: Avoid _wrap_loop prior to create_subprocess_exec Bug: https://bugs.gentoo.org/761538 Signed-off-by: Zac Medico gentoo.org> lib/portage/util/futures/_asyncio/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/portage/util/futures/_asyncio/__init__.py b/lib/portage/util/futures/_asyncio/__init__.py index 48d9b68104..4cf337998c 100644 --- a/lib/portage/util/futures/_asyncio/__init__.py +++ b/lib/portage/util/futures/_asyncio/__init__.py @@ -119,7 +119,7 @@ def run(coro): run.__doc__ = _real_asyncio.run.__doc__ -def create_subprocess_exec(*args, **kwargs): +def create_subprocess_exec(*args, loop=None, **kwargs): """ Create a subprocess. @@ -140,7 +140,6 @@ def create_subprocess_exec(*args, **kwargs): @rtype: asyncio.subprocess.Process (or compatible) @return: asyncio.subprocess.Process interface """ - loop = _wrap_loop(kwargs.pop("loop", None)) # Python 3.4 and later implement PEP 446, which makes newly # created file descriptors non-inheritable by default. kwargs.setdefault("close_fds", False)