diff -r 176145438b1e -r 422fd05e9c91 eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py --- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py Thu Jun 25 19:09:55 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheck.py Sat Jun 27 12:08:12 2020 +0200 @@ -4,7 +4,7 @@ # """ -Module implementing the syntax check for Python 2/3. +Module implementing the syntax check for Python 3. """ import queue @@ -217,10 +217,7 @@ (file name, line number, column, codestring (only at syntax errors), the message, a list with arguments for the message) """ - try: - import builtins - except ImportError: - import __builtin__ as builtins # __IGNORE_WARNING__ + import builtins try: codestring = normalizeCode(codestring) @@ -325,6 +322,3 @@ results.append((filename, err.lineno, 0, "FLAKES_ERROR", msg, [])) return [{'warnings': results}] - -# -# eflag: noqa = M702