From b8c79f0be5608577d84a3aa0a2001f22358b6993 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 8 Jul 2017 23:13:48 +0200 Subject: [PATCH] Small refactoring. --- parso/python/pep8.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parso/python/pep8.py b/parso/python/pep8.py index 3f68697..80a04ba 100644 --- a/parso/python/pep8.py +++ b/parso/python/pep8.py @@ -108,8 +108,7 @@ class ImplicitNode(BracketNode): Implicit indentation after keyword arguments, default arguments, annotations and dict values. """ - def __init__(self, config, parent_indentation, leaf, parent): - # TODO remove parent_indentation? + def __init__(self, config, leaf, parent): super(ImplicitNode, self).__init__(config, leaf, parent) self.type = IndentationTypes.IMPLICIT @@ -497,8 +496,7 @@ class PEP8Normalizer(Normalizer): and part.parent.type in _IMPLICIT_INDENTATION_TYPES: indentation = node.indentation self._indentation_tos = ImplicitNode( - self._config, indentation, part, - parent=self._indentation_tos + self._config, part, parent=self._indentation_tos ) self._on_newline = type_ in ('newline', 'backslash')