From 05da4f3b055e2d8b589d8d5a2c7de47932b01951 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 25 Jun 2018 11:12:16 -0700 Subject: [PATCH] scripts/check_format: prefer pycodestyle over pep8 pep8 has been renamed to pycodestyle; check for pycodestyle first so that we prefer the up-to-date version over the deprecated pep8 name. Change-Id: Ie9cf2d0c156885893926358cfb546432ad38f23d Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/416760 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker --- scripts/check_format.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/check_format.sh b/scripts/check_format.sh index a061d2799..21a34e2c8 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -110,12 +110,10 @@ else fi rm -f scripts/posix.log -if hash pep8 2>/dev/null; then - PEP8=pep8 -fi - if hash pycodestyle 2>/dev/null; then PEP8=pycodestyle +elif hash pep8 2>/dev/null; then + PEP8=pep8 fi if [ ! -z ${PEP8} ]; then