Commit 1e243eb0 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧

tools: Remove things related to deprecated Browser

parent d2ba0396
#!/usr/bin/env python
from __future__ import print_function
import sys
from weboob.deprecated.browser import StandardBrowser
print(StandardBrowser()._certhash(sys.argv[1]))
......@@ -11,7 +11,7 @@ MODULE_FILES=$(git ls-files modules|grep '\.py$')
MODULE_FILES3=$(printf "%s\n" $MODULE_FILES|grep -E -w "^modules/(${PY3MODS})")
PYFILES=$(git ls-files | grep '^scripts\|\.py$'|grep -v boilerplate_data|grep -v stable_backport_data|grep -v '^modules'|grep -v '^contrib')
PYFILES3="$(printf "%s\n" $PYFILES | grep -v /deprecated/) $MODULE_FILES3"
PYFILES3="$PYFILES $MODULE_FILES3"
PYFILES="$PYFILES $MODULE_FILES"
grep -n 'class [^( ]\+:$' ${PYFILES} && echo 'Error: old class style found, always inherit object' && err=3
grep -n '[[:space:]]$' ${PYFILES} && echo 'Error: tabs or trailing whitespace found, remove them' && err=4
......
......@@ -3,7 +3,6 @@ from __future__ import print_function
import logging
import os
import subprocess
import sys
from weboob.core import Weboob
......@@ -19,7 +18,6 @@ weboob.modules_loader.load_all()
modules_without_tests = []
modules_without_icons = []
modules_using_deprecated = []
modules_without_py3 = []
with open(os.path.join(os.path.dirname(__file__), 'py3-compatible.modules')) as p:
......@@ -37,8 +35,6 @@ for name, module in weboob.modules_loader.loaded.items():
not module.icon:
modules_without_icons.append(name)
if subprocess.call(['grep', '-q', '-r', 'weboob.deprecated.browser', path]) == 0:
modules_using_deprecated.append(name)
if name not in modules_py3_compatible:
modules_without_py3.append(name)
......@@ -47,11 +43,9 @@ 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_using_deprecated:
print('\nModules using deprecated Browser 1: %s' % ', '.join(sorted(modules_using_deprecated)))
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_using_deprecated or modules_without_py3:
if modules_without_tests or modules_without_icons or modules_without_py3:
sys.exit(1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment