From df1abe8d275970dbaefd2ccc4c22ad1c83eb381c Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Thu, 25 Jan 2018 16:13:59 +0100 Subject: Rip some of the six imports from the codebase --- pylint/checkers/misc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pylint/checkers/misc.py') diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index 4f5407b10..c0f9ae83b 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -21,8 +21,6 @@ import re -import six - from pylint.interfaces import IRawChecker from pylint.checkers import BaseChecker from pylint.utils import OPTION_RGX @@ -111,7 +109,7 @@ class EncodingChecker(BaseChecker): def _check_encoding(self, lineno, line, file_encoding): try: - return six.text_type(line, file_encoding) + line.decode(file_encoding) except UnicodeDecodeError as ex: self.add_message('invalid-encoded-data', line=lineno, args=(file_encoding, ex.args[2])) -- cgit v1.2.1