PEP 3132 unpacking should not raise an error (it may yield wrong results though at the moment), fixes #707.
This commit is contained in:
1 parent
7d64069780
commit
1c0aa06c7d
4 files changed
+33
-2
No files matched your search
+1
-1
@@ -1487,7 +1487,7 @@ def _defined_names(current):
|
||||
if is_node(current, 'testlist_star_expr', 'testlist_comp', 'exprlist'):
|
||||
for child in current.children[::2]:
|
||||
names += _defined_names(child)
|
||||
elif is_node(current, 'atom'):
|
||||
elif is_node(current, 'atom', 'star_expr'):
|
||||
names += _defined_names(current.children[1])
|
||||
elif is_node(current, 'power', 'atom_expr'):
|
||||
if current.children[-2] != '**': # Just if there's no operation
|
||||
|
||||
Reference in new issue
Block a user