pyflakes fixes for unchecked files

They were not in the tools/pyflakes.sh runs
This commit is contained in:
Laurent Bachelier 2013-03-15 19:49:45 +01:00
commit dcb2b61b18
3 changed files with 5 additions and 6 deletions

View file

@ -4,7 +4,6 @@
import os
import subprocess
import sys
from cStringIO import StringIO
selection = set()
dependencies = set()

View file

@ -12,9 +12,9 @@ fi
if [ -n "${FLAKE8}" ]; then
set -e
${FLAKE8} --ignore=E,W --exclude='*_ui.py' *.py weboob modules contrib scripts/*
${FLAKE8} --ignore=E,W --exclude='*_ui.py' *.py weboob modules contrib docs scripts/* tools/*.py
else
# grep will return 0 only if it founds something, but our script
# wants to return 0 when it founds nothing!
pyflakes *.py weboob modules contrib scripts/* | grep -v redefinition && exit 1 || exit 0
pyflakes *.py weboob modules contrib docs scripts/* tools/*.py | grep -v redefinition && exit 1 || exit 0
fi