diff options
Diffstat (limited to 'pylint/testutils.py')
| -rw-r--r-- | pylint/testutils.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pylint/testutils.py b/pylint/testutils.py index 925e21999..5456d1635 100644 --- a/pylint/testutils.py +++ b/pylint/testutils.py @@ -30,8 +30,7 @@ import sys import tempfile import tokenize -import six -from six.moves import StringIO +from io import StringIO import astroid from pylint import checkers @@ -185,7 +184,7 @@ class UnittestLinter(object): return True def add_stats(self, **kwargs): - for name, value in six.iteritems(kwargs): + for name, value in kwargs.items(): self.stats[name] = value return self.stats @@ -198,7 +197,7 @@ def set_config(**kwargs): def _wrapper(fun): @functools.wraps(fun) def _forward(self): - for key, value in six.iteritems(kwargs): + for key, value in kwargs.items(): setattr(self.checker.config, key, value) if isinstance(self, CheckerTestCase): # reopen checker in case, it may be interested in configuration change @@ -217,7 +216,7 @@ class CheckerTestCase(object): def setup_method(self): self.linter = UnittestLinter() self.checker = self.CHECKER_CLASS(self.linter) # pylint: disable=not-callable - for key, value in six.iteritems(self.CONFIG): + for key, value in self.CONFIG.items(): setattr(self.checker.config, key, value) self.checker.open() |
