mirror of
https://github.com/python/cpython.git
synced 2025-11-02 06:31:29 +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)
|
||||
if value is None:
|
||||
continue
|
||||
if isinstance(obj, types.FunctionType):
|
||||
yield obj
|
||||
if isinstance(value, types.FunctionType):
|
||||
yield value
|
||||
return
|
||||
yield from _find_inner_functions(value, _seen, _depth)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue