Browse Source

Fix Python 2 error with return from generator

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.66
Alexey Shrub 6 years ago
parent
commit
1cdc7a0e88
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lark/tree.py

+ 2
- 1
lark/tree.py View File

@@ -103,7 +103,8 @@ class Tree(object):

def iter_subtrees_topdown(self):
if not self.children:
return self
yield self
return

stack = [self]
while stack:


Loading…
Cancel
Save