Skip to content

Commit f39fb32

Browse files
committed
fixed the problem with the returns
1 parent d8c62b3 commit f39fb32

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

inspect4py/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,8 @@ def _get_ids(self, elt):
10571057
:param ast.node elt: AST node
10581058
:return list: list of identifiers
10591059
"""
1060+
## Modification of the function
1061+
## to catch the source code, in case if what we return is not a variable.
10601062
if isinstance(elt, (ast.Tuple,)):
10611063
# For tuple or list get id of each item if item is a Name
10621064
rd=[]

0 commit comments

Comments
 (0)