Make the python code pylint and flake8 compliant

(cherry picked from commit 1e4ff9d485)
This commit is contained in:
Ondřej Surý
2020-03-30 15:05:06 +02:00
committed by Ondřej Surý
parent 4586a10327
commit 4c4af11e5b
7 changed files with 177 additions and 141 deletions

View File

@@ -133,7 +133,7 @@ n=`expr $n + 1`
echo_i "checking policy.conf parser ($n)"
ret=0
${PYTHON} testpolicy.py policy.sample > policy.out
PYTHONPATH="../../../python:$PYTHONPATH" ${PYTHON} testpolicy.py policy.sample > policy.out
$DOS2UNIX policy.out > /dev/null 2>&1
cmp -s policy.good policy.out || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi