1
0
forked from VimPlug/jedi

python 3.5 uses atom_expr node in many places where previous python would use power node

This commit is contained in:
Claude
2016-02-09 11:42:53 +01:00
parent 3fb5fe8c77
commit 241abe9cf3
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ def unpack_tuple_to_dict(evaluator, types, exprlist):
analysis.add(evaluator, 'value-error-too-few-values', has_parts,
message="ValueError: need more than %s values to unpack" % n)
return dct
elif exprlist.type == 'power':
elif exprlist.type == 'power' or exprlist.type == 'atom_expr':
# Something like ``arr[x], var = ...``.
# This is something that is not yet supported, would also be difficult
# to write into a dict.