Skip to content

Commit

Permalink
Prefer Python 3 in the Vim plugin (#2124)
Browse files Browse the repository at this point in the history
Python 2 is EOL, so it makes more sense to use Python 3 as the preferred version of Python rather than just fall back on it.
  • Loading branch information
thomwiggers committed Sep 26, 2020
1 parent ff629c3 commit 40c3e09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions powerline/bindings/vim/plugin/powerline.vim
Expand Up @@ -26,14 +26,14 @@ if exists('g:powerline_pycmd')
let s:pyeval = g:powerline_pyeval
let s:has_python = 1
endif
elseif has('python')
let s:has_python = 1
let s:pycmd = 'py'
let s:pyeval = get(g:, 'powerline_pyeval', 'pyeval')
elseif has('python3')
let s:has_python = 1
let s:pycmd = 'py3'
let s:pyeval = get(g:, 'powerline_pyeval', 'py3eval')
elseif has('python')
let s:has_python = 1
let s:pycmd = 'py'
let s:pyeval = get(g:, 'powerline_pyeval', 'pyeval')
else
let s:has_python = 0
endif
Expand Down

0 comments on commit 40c3e09

Please sign in to comment.