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 6A78615808B for ; Tue, 15 Mar 2022 02:52:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D070E08AD; Tue, 15 Mar 2022 02:52:38 +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 6679CE08AD for ; Tue, 15 Mar 2022 02:52:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D4C993431CB for ; Tue, 15 Mar 2022 02:52:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4A9822FB for ; Tue, 15 Mar 2022 02:52:35 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1647312730.e4afca3ed07f0e11f9918e1560074d7e5550be53.mattst88@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/portage/ X-VCS-Repository: proj/portage X-VCS-Files: lib/portage/eapi.py X-VCS-Directories: lib/portage/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: e4afca3ed07f0e11f9918e1560074d7e5550be53 X-VCS-Branch: master Date: Tue, 15 Mar 2022 02:52:35 +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: a88c12c2-38d5-4b3b-a034-f74bc58b5c74 X-Archives-Hash: ed67886060870b9873c120f9b1be4c1f commit: e4afca3ed07f0e11f9918e1560074d7e5550be53 Author: Wolfgang E. Sanyer gmail com> AuthorDate: Fri Sep 24 16:09:55 2021 +0000 Commit: Matt Turner gentoo org> CommitDate: Tue Mar 15 02:52:10 2022 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e4afca3e portage.eapi: use tuple instead of str for namedtuple definition Reviewed-by: Matt Turner gentoo.org> Signed-off-by: Wolfgang E. Sanyer gmail.com> Signed-off-by: Matt Turner gentoo.org> lib/portage/eapi.py | 52 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/lib/portage/eapi.py b/lib/portage/eapi.py index adee87d00..18069b04b 100644 --- a/lib/portage/eapi.py +++ b/lib/portage/eapi.py @@ -288,25 +288,39 @@ def eapi_has_sysroot(eapi): _eapi_attrs = collections.namedtuple( "_eapi_attrs", - "allows_package_provided " - "bdepend " - "broot " - "dots_in_PN dots_in_use_flags " - "exports_AA " - "exports_EBUILD_PHASE_FUNC " - "exports_ECLASSDIR " - "exports_KV " - "exports_merge_type " - "exports_PORTDIR " - "exports_replace_vars " - "feature_flag_test " - "idepend iuse_defaults iuse_effective posixish_locale " - "path_variables_end_with_trailing_slash " - "prefix " - "repo_deps required_use required_use_at_most_one_of " - "selective_src_uri_restriction slot_operator slot_deps " - "src_uri_arrows strong_blocks use_deps use_dep_defaults " - "empty_groups_always_true sysroot", + ( + "allows_package_provided", + "bdepend", + "broot", + "dots_in_PN", + "dots_in_use_flags", + "exports_AA", + "exports_EBUILD_PHASE_FUNC", + "exports_ECLASSDIR", + "exports_KV", + "exports_merge_type", + "exports_PORTDIR", + "exports_replace_vars", + "feature_flag_test", + "idepend", + "iuse_defaults", + "iuse_effective", + "posixish_locale", + "path_variables_end_with_trailing_slash", + "prefix", + "repo_deps", + "required_use", + "required_use_at_most_one_of", + "selective_src_uri_restriction", + "slot_operator", + "slot_deps", + "src_uri_arrows", + "strong_blocks", + "use_deps", + "use_dep_defaults", + "empty_groups_always_true", + "sysroot", + ), )