From 12470c1b8f6b18caad902eaa50ea68059cc4253a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 13 Mar 2014 22:06:08 +0100 Subject: [PATCH] ignore 'except' in a comment --- tools/pyflakes.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index a8c22060..f9da835e 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -6,7 +6,7 @@ grep -n 'class [^( ]\+:$' ${PYFILES} && echo 'Error: old class style found, alwa grep -n $'\t\|\s$' $PYFILES && echo 'Error: tabs or trailing whitespace found, remove them' && exit 4 grep -Fn '.setlocale' ${PYFILES} && echo 'Error: do not use setlocale' && exit 5 grep -Fn '__future__ import with_statement' ${PYFILES} && echo 'Error: with_statement useless as we do not support Python 2.5' && exit 6 -grep -nE 'except [[:alnum:] ]+,[[:alnum:] ]+' ${PYFILES} && echo 'Error: use new "as" way of naming exceptions' && exit 7 +grep -nE '^[[:space:]]+except [[:alnum:] ]+,[[:alnum:] ]+' ${PYFILES} && echo 'Error: use new "as" way of naming exceptions' && exit 7 FLAKE8="" if which flake8 >/dev/null 2>&1; then