From 8472e60bdd35597c602565996b5147c7351ff34a Mon Sep 17 00:00:00 2001 From: Rechi Date: Sun, 18 Nov 2018 12:55:30 +0100 Subject: [PATCH 1/2] reformat 2to3 fixes --- kodi_addon_checker/check_py3_compatibility.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/kodi_addon_checker/check_py3_compatibility.py b/kodi_addon_checker/check_py3_compatibility.py index 70bfb439..5eb13f79 100644 --- a/kodi_addon_checker/check_py3_compatibility.py +++ b/kodi_addon_checker/check_py3_compatibility.py @@ -58,8 +58,22 @@ def Check_Py3_compatibility(report: Report, path: str): :path: path to the addon """ fixer_names = [] - list_of_fixes = ['import', 'dict', 'except', 'filter', 'has_key', 'itertools', - 'map', 'ne', 'next', 'print', 'renames', 'types', 'xrange', 'zip'] + list_of_fixes = [ + 'dict', + 'except', + 'filter', + 'has_key', + 'import', + 'itertools', + 'map', + 'ne', + 'next', + 'print', + 'renames', + 'types', + 'xrange', + 'zip' + ] for fix in list_of_fixes: fixer_names.append('lib2to3.fixes.fix_' + fix) From 5591a25e5ab807334332bf0735afb22dad0b5137 Mon Sep 17 00:00:00 2001 From: Rechi Date: Sun, 18 Nov 2018 12:55:30 +0100 Subject: [PATCH 2/2] add numliterals 2to3 fixer to py3 checker --- kodi_addon_checker/check_py3_compatibility.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kodi_addon_checker/check_py3_compatibility.py b/kodi_addon_checker/check_py3_compatibility.py index 5eb13f79..2b4c0740 100644 --- a/kodi_addon_checker/check_py3_compatibility.py +++ b/kodi_addon_checker/check_py3_compatibility.py @@ -68,6 +68,7 @@ def Check_Py3_compatibility(report: Report, path: str): 'map', 'ne', 'next', + 'numliterals', 'print', 'renames', 'types',