--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Mon Jun 22 17:55:06 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Tue Jun 23 17:24:18 2020 +0200 @@ -7,11 +7,7 @@ Module implementing the code style checker. """ -try: # Only for Py2 - import Queue as queue -except ImportError: - import queue - +import queue import ast import sys import multiprocessing @@ -286,12 +282,6 @@ @rtype tuple of (dict, dict) or tuple of (None, None) """ src = "".join(source) - # Check type for py2: if not str it's unicode - if sys.version_info[0] == 2: - try: - src = src.encode('utf-8') - except UnicodeError: - pass try: ast.parse(src, filename, 'exec')