From d42c612c9a6f6ca8f34dd3c11cb6cb1cc19e7da7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Mon, 4 Jan 2016 17:24:40 +0100 Subject: [PATCH] pre-commit: port to python3 --- hooks/pre-commit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hooks/pre-commit b/hooks/pre-commit index 4bb0a1ed..1ea732e4 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -71,8 +71,8 @@ cmd_exists() { command -v $1 1>/dev/null } -if cmd_exists pyflakes-python2; then - PYFLAKES=pyflakes-python2 +if cmd_exists pyflakes-python3; then + PYFLAKES=pyflakes-python3 elif cmd_exists pyflakes; then PYFLAKES=pyflakes else @@ -80,8 +80,8 @@ else warn "pyflakes is not installed, using dummy placeholder!" fi -if cmd_exists pep8-python2; then - PEP8=pep8-python2 +if cmd_exists pep8-python3; then + PEP8=pep8-python3 elif cmd_exists pep8; then PEP8=pep8 else -- 2.30.2