aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pre-commit/fix-importlib-metadata.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/pre-commit/fix-importlib-metadata.patch')
-rw-r--r--testing/pre-commit/fix-importlib-metadata.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/testing/pre-commit/fix-importlib-metadata.patch b/testing/pre-commit/fix-importlib-metadata.patch
index 760d1196b1..14af5c3a3b 100644
--- a/testing/pre-commit/fix-importlib-metadata.patch
+++ b/testing/pre-commit/fix-importlib-metadata.patch
@@ -1,14 +1,14 @@
-diff --git a/pre_commit/constants.py b/pre_commit/constants.py
-index 3dcbbac..858fbb4 100644
---- a/pre_commit/constants.py
-+++ b/pre_commit/constants.py
+diff --git i/pre_commit/constants.py w/pre_commit/constants.py
+index d2f9363..694384f 100644
+--- i/pre_commit/constants.py
++++ w/pre_commit/constants.py
@@ -1,10 +1,5 @@
import sys
--if sys.version_info < (3, 8): # pragma: no cover (<PY38)
-- import importlib_metadata
--else: # pragma: no cover (PY38+)
+-if sys.version_info >= (3, 8): # pragma: >=3.8 cover
- import importlib.metadata as importlib_metadata
+-else: # pragma: <3.8 cover
+- import importlib_metadata
-
CONFIG_FILE = '.pre-commit-config.yaml'
MANIFEST_FILE = '.pre-commit-hooks.yaml'