Fix yield scanning.

This commit is contained in:
Dave Halter
2017-09-01 18:03:47 +02:00
parent d3e58955a9
commit 9ab5937a3c

View File

@@ -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: