From 6800f95b178312c3b59fb85b515064e91103d192 Mon Sep 17 00:00:00 2001 From: Vincent Ardisson Date: Tue, 25 Feb 2020 16:21:00 +0100 Subject: [PATCH] tools: remove py3-compatible.modules reference in weboob_lint --- tools/weboob_lint.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tools/weboob_lint.py b/tools/weboob_lint.py index a8b9d31e67..217892af7f 100755 --- a/tools/weboob_lint.py +++ b/tools/weboob_lint.py @@ -18,12 +18,6 @@ modules_without_tests = [] modules_without_icons = [] -modules_without_py3 = [] - -with open(os.path.join(os.path.dirname(__file__), 'py3-compatible.modules')) as p: - modules_py3_compatible = [m.strip() - for m in p.readlines() - if not m.startswith('#')] for name, module in weboob.modules_loader.loaded.items(): @@ -35,17 +29,12 @@ not module.icon: modules_without_icons.append(name) - if name not in modules_py3_compatible: - modules_without_py3.append(name) - if modules_without_tests: print('\nModules without tests: %s' % ', '.join(sorted(modules_without_tests))) if modules_without_icons: print('\nModules without icons: %s' % ', '.join(sorted(modules_without_icons))) -if modules_without_py3: - print('\nModules for Python 2 only: %s' % ', '.join(sorted(modules_without_py3))) -if modules_without_tests or modules_without_icons or modules_without_py3: +if modules_without_tests or modules_without_icons: sys.exit(1) -- GitLab