iter_yield_expr should not work correctly.

This commit is contained in:
Dave Halter
2017-09-01 09:34:01 +02:00
parent a21ec2c0ad
commit d3e58955a9
2 changed files with 9 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ class PythonLeaf(PythonMixin, Leaf):
# indent error leafs somehow? No idea how, though.
previous_leaf = self.get_previous_leaf()
if previous_leaf is not None and previous_leaf.type == 'error_leaf' \
and previous_leaf.original_type == 'error_dedent':
and previous_leaf.original_type in ('indent', 'error_dedent'):
previous_leaf = previous_leaf.get_previous_leaf()
if previous_leaf is None: