--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Wed Mar 17 19:54:32 2021 +0100 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Miscellaneous/MiscellaneousChecker.py Sun Mar 21 14:17:16 2021 +0100 @@ -160,7 +160,7 @@ if b not in self.BuiltinsWhiteList] self.__eradicator = Eradicator() - + # statistics counters self.counters = {} @@ -288,8 +288,7 @@ @return generated AST @rtype ast.AST """ - source = "".join(self.__source) - return compile(source, self.__filename, 'exec', ast.PyCF_ONLY_AST) + return ast.parse("".join(self.__source), self.__filename) def run(self): """