From f19878980becf21860dc9b8de79bed97c40a5048 Mon Sep 17 00:00:00 2001 From: Zizhong Zhang Date: Thu, 3 Sep 2020 18:15:09 -0700 Subject: [PATCH] Fix #7167, make pep8 failure --- tools/autopep8.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/autopep8.sh b/tools/autopep8.sh index f1a02b9fdff..76b5a1bda01 100755 --- a/tools/autopep8.sh +++ b/tools/autopep8.sh @@ -50,7 +50,7 @@ function main() { pip install -q "pycodestyle==${PYCODESTYLE_TAG}" pip install -q "autopep8==${AUTOPEP8_VERSION}" - ver=$(autopep8 --version) + ver=$(autopep8 --version 2>&1) if [ "$ver" != "$VERSION" ] then echo "Wrong version of autopep8!"