From 0a76c451538507b6440786fe1d1a8f19a80509a9 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 6 Jul 2017 01:30:09 +0200 Subject: [PATCH] Finall E30x tests passing. --- parso/python/normalizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parso/python/normalizer.py b/parso/python/normalizer.py index 34e5f4c..755a252 100644 --- a/parso/python/normalizer.py +++ b/parso/python/normalizer.py @@ -246,6 +246,8 @@ class PEP8Normalizer(Normalizer): if typ == 'suite': assert self._indentation_tos.type == IndentationTypes.SUITE self._indentation_tos = self._indentation_tos.parent + # If we dedent, no lines are needed anymore. + self._wanted_newline_count = None elif implicit_indentation_possible: self._implicit_indentation_possible = False if self._indentation_tos.type == IndentationTypes.IMPLICIT: