Commit f2e54f88 authored by Jérome Perrin's avatar Jérome Perrin

WIP new pylint

parent b67f379e
......@@ -581,8 +581,13 @@ def checkPythonSourceCode(source_code_str, portal_type=None):
# dynamic modules from ZODB.
Run(args, reporter=TextReporter(output_file), exit=False)
finally:
from astroid.builder import MANAGER
MANAGER.astroid_cache.pop(
if six.PY2:
from astroid.builder import MANAGER
astroid_cache = MANAGER.astroid_cache
else:
from astroid.manager import AstroidManager
astroid_cache = AstroidManager().astroid_cache
astroid_cache.pop(
os.path.splitext(os.path.basename(input_file.name))[0],
None)
......
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