diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-01-25 16:13:59 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-01-25 16:13:59 +0100 |
commit | df1abe8d275970dbaefd2ccc4c22ad1c83eb381c (patch) | |
tree | f2438ad494f63824ddbb1859d4c34b77e61446b4 /pylint/checkers/misc.py | |
parent | 1ce9be884414be2cbaffc8b6d2ac83de86017f8c (diff) | |
download | pylint-git-df1abe8d275970dbaefd2ccc4c22ad1c83eb381c.tar.gz |
Rip some of the six imports from the codebase
Diffstat (limited to 'pylint/checkers/misc.py')
-rw-r--r-- | pylint/checkers/misc.py | 4 |
1 files changed, 1 insertions, 3 deletions
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])) |