From dd0a41661fea43a7a31ea54b08784080f7e139fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Sep 2021 18:50:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/resources/hook-tmpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl index 299144ec..1e82a2a2 100755 --- a/pre_commit/resources/hook-tmpl +++ b/pre_commit/resources/hook-tmpl @@ -3,15 +3,11 @@ # ID: 138fd403232d2ddd5efb44317e38bf03 import os import sys - +from shutil import which # we try our best, but the shebang of this script is difficult to determine: # - macos doesn't ship with python3 # - windows executables are almost always `python.exe` # therefore we continue to support python2 for this small script -if sys.version_info < (3, 3): - from distutils.spawn import find_executable as which -else: - from shutil import which # work around https://github.com/Homebrew/homebrew-core/issues/30445 os.environ.pop('__PYVENV_LAUNCHER__', None)