mirror of
https://github.com/python/cpython.git
synced 2025-11-03 07:01:21 +00:00
Fix incorrect variable reference
This commit is contained in:
parent
3654f51b82
commit
19297bc9ee
1 changed files with 2 additions and 2 deletions
|
|
@ -1257,8 +1257,8 @@ def _find_inner_functions(obj, _seen=None, _depth=0):
|
||||||
value = getattr(obj, attr, None)
|
value = getattr(obj, attr, None)
|
||||||
if value is None:
|
if value is None:
|
||||||
continue
|
continue
|
||||||
if isinstance(obj, types.FunctionType):
|
if isinstance(value, types.FunctionType):
|
||||||
yield obj
|
yield value
|
||||||
return
|
return
|
||||||
yield from _find_inner_functions(value, _seen, _depth)
|
yield from _find_inner_functions(value, _seen, _depth)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue