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 17181138350 for ; Sun, 8 Mar 2020 13:25:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56E1DE088F; Sun, 8 Mar 2020 13:24:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 854B8E088F for ; Sun, 8 Mar 2020 13:24:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8B65A34F62D for ; Sun, 8 Mar 2020 13:24:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30D7012B for ; Sun, 8 Mar 2020 13:24:56 +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: <1583673889.42163237b57c56de9a24fe6549e46c805fab2bb3.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: 42163237b57c56de9a24fe6549e46c805fab2bb3 X-VCS-Branch: master Date: Sun, 8 Mar 2020 13:24: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: e8ea6fc3-9945-4261-84ce-98ba790ebce8 X-Archives-Hash: 17896931758085eb18714e07af718ef3 commit: 42163237b57c56de9a24fe6549e46c805fab2bb3 Author: Michał Górny gentoo org> AuthorDate: Sun Mar 8 13:24:17 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Mar 8 13:24:49 2020 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=42163237 plugin/gentoo-common.vim: Stop suggesting py2 in newebuild Signed-off-by: Michał Górny gentoo.org> plugin/gentoo-common.vim | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim index fe00202..65a8691 100644 --- a/plugin/gentoo-common.vim +++ b/plugin/gentoo-common.vim @@ -57,19 +57,14 @@ fun! GentooGetPythonTargets() if exists("g:gentoopythontargets") && g:gentoopythontargets != "" return g:gentoopythontargets else - let l:py2 = system("eselect python show --python2") - let l:py2 = substitute(l:py2, "\n", "", "g") let l:py3 = system("eselect python show --python3") let l:py3 = substitute(l:py3, "\n", "", "g") - if l:py2 == "" - let l:py2 = "python2.7" - endif if l:py3 == "" - let l:py3 = "python3.4" + let l:py3 = "python3.8" endif - let l:pythons = substitute(l:py2 . " " . l:py3, "[.]", "_", "g") + let l:pythons = substitute(l:py3, "[.]", "_", "g") let g:gentoopythontargets = l:pythons return g:gentoopythontargets