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 43BBD158087 for ; Thu, 3 Feb 2022 08:37:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE2ED2BC021; Thu, 3 Feb 2022 08:36:59 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C2DFF2BC021 for ; Thu, 3 Feb 2022 08:36:59 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A876634301B for ; Thu, 3 Feb 2022 08:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3AC0B2C6 for ; Thu, 3 Feb 2022 08:36:57 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1643877410.a3e19f88a6734e75d245147eee9647f621fed420.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: plugin/gentoo-common.vim X-VCS-Directories: plugin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: a3e19f88a6734e75d245147eee9647f621fed420 X-VCS-Branch: master Date: Thu, 3 Feb 2022 08:36:57 +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: a4273274-4700-492c-93b5-1c0bf779fe22 X-Archives-Hash: 6e0abfa0545fb1e4f00c9c621537560d commit: a3e19f88a6734e75d245147eee9647f621fed420 Author: Michał Górny gentoo org> AuthorDate: Wed Jan 26 10:03:46 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Feb 3 08:36:50 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=a3e19f88 gentoo-common: Use eval() more consistently Signed-off-by: Michał Górny gentoo.org> Closes: https://github.com/gentoo/gentoo-syntax/pull/39 plugin/gentoo-common.vim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim index 671a3c5..5c704ab 100644 --- a/plugin/gentoo-common.vim +++ b/plugin/gentoo-common.vim @@ -78,11 +78,11 @@ fun! GentooGetPythonTargets() endif endfor if len(l:py3s) ==# 1 - let l:impls = l:impls->add("python3_".l:py3s->join()) + eval l:impls->add("python3_".l:py3s->join()) elseif len(l:py3s) > 1 let l:min = "" let l:max = "" - let l:py3s = l:py3s->sort('N') + eval l:py3s->sort('N') for l:py in l:py3s if l:min ==# "" let l:min = l:py @@ -96,11 +96,9 @@ fun! GentooGetPythonTargets() endfor if l:max !=# "" - let l:impls = l:impls->add("python3_{".l:min.".." - \ .l:max."}") + eval l:impls->add("python3_{".l:min."..".l:max."}") else - let l:impls = l:impls->add("python3_{".l:py3s - \ ->join(",")."}") + eval l:impls->add("python3_{".l:py3s->join(",")."}") endif endif let l:py3 = flatten(l:impls)->join()