diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index 52ffab7e3a2c4df5e8999f64b7095713bf6bbb71..596a0ad9bd5b7c81c11c044b2429d08e16a7c1ca 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -29,6 +29,7 @@ grep -nE "^ *print(\(| )" ${MODULE_FILES} && echo 'Error: Use of print in module grep -n xrange ${MODULE_FILES3} && echo 'Error: xrange is forbidden' && err=21 grep -nE "from (urllib|urlparse) import" ${MODULE_FILES3} && echo 'Error: python2 urllib is forbidden' && err=22 grep -nE "^import (urllib|urlparse)$" ${MODULE_FILES3} && echo 'Error: python2 urllib is forbidden' && err=22 +grep -nE "HEADLESS[[:space:]]*=[[:space:]]*False" ${MODULE_FILES} && echo 'Error: HEADLESS must be set back to True' && err=23 if [ ${VER} -eq 2 ] then