commit: 42163237b57c56de9a24fe6549e46c805fab2bb3 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Mar 8 13:24:17 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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