--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Sat Jun 20 17:36:20 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py Sun Jun 21 18:26:12 2020 +0200 @@ -364,14 +364,6 @@ fixer = None if not errors: - # avoid 'Encoding declaration in unicode string' exception on Python2 - if sys.version_info[0] == 2: - if encoding == 'utf-8-bom': - enc = 'utf-8' - else: - enc = encoding - source = [line.encode(enc) for line in source] - if includeMessages: select = [s.strip() for s in includeMessages.split(',') if s.strip()]