From 36c0da480893effc239dcb80cff9e94900f10780 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sun, 31 Mar 2019 15:31:09 +0200 Subject: [PATCH] pyflakes: disable problematic checks --- tools/pyflakes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pyflakes.sh b/tools/pyflakes.sh index 52ffab7e3a..c5fd546ec7 100755 --- a/tools/pyflakes.sh +++ b/tools/pyflakes.sh @@ -27,8 +27,8 @@ grep -nE "\.iter(keys|values|items)\(\)" ${PYFILES3} | grep -Fv "six.iter" && ec grep -nE "^ *print(\(| )" ${MODULE_FILES} && echo 'Error: Use of print in modules is forbidden, use logger instead' && err=20 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 "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 if [ ${VER} -eq 2 ] then -- GitLab