Merge pull request #986 from tim77/master

Specify env python explicitly.
This commit is contained in:
Anthony Sottile 2019-03-30 11:35:50 -07:00 committed by GitHub
commit 2fbe359846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ def install(
before, rest = contents.split(TEMPLATE_START) before, rest = contents.split(TEMPLATE_START)
to_template, after = rest.split(TEMPLATE_END) to_template, after = rest.split(TEMPLATE_END)
before = before.replace('#!/usr/bin/env python', shebang()) before = before.replace('#!/usr/bin/env python3', shebang())
hook_file.write(before + TEMPLATE_START) hook_file.write(before + TEMPLATE_START)
for line in to_template.splitlines(): for line in to_template.splitlines():

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
"""File generated by pre-commit: https://pre-commit.com""" """File generated by pre-commit: https://pre-commit.com"""
from __future__ import print_function from __future__ import print_function