chiark / gitweb /
pre-commit: port to python3
[fdroidserver.git] / hooks / pre-commit
index 4bb0a1edf7744ca65ae29248a688659ad8fccf61..1ea732e45d760da1381d5c3503eab2c3ead1853f 100755 (executable)
@@ -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