Skip to content

Commit

Permalink
Merge pull request #146 from Rechi/fix/checkPy3
Browse files Browse the repository at this point in the history
add numliterals 2to3 fixer to py3 checker
  • Loading branch information
razzeee authored Nov 18, 2018
2 parents d5fe0ff + 5591a25 commit 710c192
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions kodi_addon_checker/check_py3_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,23 @@ 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',
'numliterals',
'print',
'renames',
'types',
'xrange',
'zip'
]

for fix in list_of_fixes:
fixer_names.append('lib2to3.fixes.fix_' + fix)
Expand Down

0 comments on commit 710c192

Please sign in to comment.