[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2021-09-27 18:50:25 +00:00
parent 02169ee59f
commit dd0a41661f

View file

@ -3,15 +3,11 @@
# ID: 138fd403232d2ddd5efb44317e38bf03 # ID: 138fd403232d2ddd5efb44317e38bf03
import os import os
import sys import sys
from shutil import which
# we try our best, but the shebang of this script is difficult to determine: # we try our best, but the shebang of this script is difficult to determine:
# - macos doesn't ship with python3 # - macos doesn't ship with python3
# - windows executables are almost always `python.exe` # - windows executables are almost always `python.exe`
# therefore we continue to support python2 for this small script # 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 # work around https://github.com/Homebrew/homebrew-core/issues/30445
os.environ.pop('__PYVENV_LAUNCHER__', None) os.environ.pop('__PYVENV_LAUNCHER__', None)