From 216ba19e6ad994e24bb45ae97c0f7e09edb23782 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sat, 20 Jul 2013 23:59:58 +0200 Subject: [PATCH] Ban setlocale --- tools/pyflakes.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index cfbae343..98050f2a 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -4,6 +4,7 @@ cd .. PYFILES=$(git ls-files|grep '^scripts\|\.py$'|grep -v boilerplate_data|tr '\n' ' ') grep 'class [^( ]\+:$' ${PYFILES} && exit 3 grep $'\t\|\s$' $PYFILES && exit 4 +grep '\.setlocale' ${PYFILES} && exit 5 FLAKE8="" if which flake8 >/dev/null 2>&1; then