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/format.py | |
parent | 1ce9be884414be2cbaffc8b6d2ac83de86017f8c (diff) | |
download | pylint-git-df1abe8d275970dbaefd2ccc4c22ad1c83eb381c.tar.gz |
Rip some of the six imports from the codebase
Diffstat (limited to 'pylint/checkers/format.py')
-rw-r--r-- | pylint/checkers/format.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py index 2931f8eac..013ed47e3 100644 --- a/pylint/checkers/format.py +++ b/pylint/checkers/format.py @@ -39,9 +39,6 @@ import sys import tokenize from functools import reduce # pylint: disable=redefined-builtin -import six -from six.moves import zip, map, filter # pylint: disable=redefined-builtin - from astroid import nodes from pylint.interfaces import ITokenChecker, IAstroidChecker, IRawChecker @@ -894,8 +891,7 @@ class FormatChecker(BaseTokenChecker): for indent_pos, state, offsets in self._current_line.retained_warnings: block_type = offsets[tokens.start_col(indent_pos)] - hints = dict((k, v) for k, v in six.iteritems(offsets) - if v != block_type) + hints = {k: v for k, v in offsets.items() if v != block_type} if single_line_block_stmt and block_type == WITH_BODY: self._add_continuation_message(state, hints, tokens, indent_pos) elif not single_line_block_stmt and block_type == SINGLE_LINE: |