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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 051A8138334 for ; Fri, 18 Oct 2019 03:43:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 322F3E087B; Fri, 18 Oct 2019 03:43:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 15E86E087B for ; Fri, 18 Oct 2019 03:43:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2427F34BFE4 for ; Fri, 18 Oct 2019 03:43:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 90CB07FC for ; Fri, 18 Oct 2019 03:43:27 +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: <1571369860.67e0bba35f1b7afd5ee5ca648154838741875d6a.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: 67e0bba35f1b7afd5ee5ca648154838741875d6a X-VCS-Branch: master Date: Fri, 18 Oct 2019 03:43:27 +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: da94b310-0608-4841-911e-e5f487174c93 X-Archives-Hash: 2997004629ffc794965785395605cf0b commit: 67e0bba35f1b7afd5ee5ca648154838741875d6a Author: Zac Medico gentoo org> AuthorDate: Fri Oct 18 03:35:46 2019 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Oct 18 03:37:40 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=67e0bba3 asyncio.create_subprocess_exec: suppress DeprecationWarning for loop argument See: https://bugs.python.org/issue36373 Signed-off-by: Zac Medico gentoo.org> lib/portage/util/futures/_asyncio/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/portage/util/futures/_asyncio/__init__.py b/lib/portage/util/futures/_asyncio/__init__.py index bd9f2e47c..7635dbb5e 100644 --- a/lib/portage/util/futures/_asyncio/__init__.py +++ b/lib/portage/util/futures/_asyncio/__init__.py @@ -140,8 +140,9 @@ def create_subprocess_exec(*args, **kwargs): loop = _wrap_loop(kwargs.pop('loop', None)) kwargs.setdefault('close_fds', _close_fds_default) if _asyncio_enabled and isinstance(loop, _AsyncioEventLoop): - # Use the real asyncio loop and create_subprocess_exec. - return _real_asyncio.create_subprocess_exec(*args, loop=loop._loop, **kwargs) + # Use the real asyncio create_subprocess_exec (loop argument + # is deprecated since since Python 3.8). + return _real_asyncio.create_subprocess_exec(*args, **kwargs) result = loop.create_future()