X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2989dc1bf822b1b2a6bd250cea37bbf20c237764..b3ceb293d9e69295a190fed93517cbe1b7372154:/plugin/black.vim?ds=inline diff --git a/plugin/black.vim b/plugin/black.vim index c5f0313..39a31f1 100644 --- a/plugin/black.vim +++ b/plugin/black.vim @@ -103,9 +103,9 @@ def _get_virtualenv_site_packages(venv_path, pyver): return venv_path / 'lib' / f'python{pyver[0]}.{pyver[1]}' / 'site-packages' def _initialize_black_env(upgrade=False): - pyver = sys.version_info[:2] - if pyver < (3, 6): - print("Sorry, Black requires Python 3.6+ to run.") + pyver = sys.version_info[:3] + if pyver < (3, 6, 2): + print("Sorry, Black requires Python 3.6.2+ to run.") return False from pathlib import Path