From c02ca47daaad8063539aed6ab2755b04bb63a038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 29 Jan 2025 21:25:00 +0100 Subject: [PATCH] Fix mis-synced version check in black.vim (#4567) The message has been updated to indicate Python 3.9+, but the check still compares to 3.8 --- CHANGES.md | 2 +- autoload/black.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 25a4b23..7a2d143 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -20,7 +20,7 @@ ### Packaging - +- Fix the version check in the vim file to reject Python 3.8 (#4567) ### Parser diff --git a/autoload/black.vim b/autoload/black.vim index 1cae6ad..cb2233c 100644 --- a/autoload/black.vim +++ b/autoload/black.vim @@ -75,7 +75,7 @@ def _initialize_black_env(upgrade=False): return True pyver = sys.version_info[:3] - if pyver < (3, 8): + if pyver < (3, 9): print("Sorry, Black requires Python 3.9+ to run.") return False