mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-15 18:42:40 +08:00
Fix yield scanning.
This commit is contained in:
1 parent
d3e58955a9
commit
9ab5937a3c
1 file changed
+3
@@ -521,6 +521,9 @@ class Function(ClassOrFunc):
|
||||
"""
|
||||
def scan(children):
|
||||
for element in children:
|
||||
if element.type in ('classdef', 'funcdef', 'lambdef'):
|
||||
continue
|
||||
|
||||
try:
|
||||
nested_children = element.children
|
||||
except AttributeError:
|
||||
|
||||
Reference in new issue
Block a user