1
0
forked from VimPlug/jedi

Remove NamePart from existance and rename it to Name.

This commit is contained in:
Dave Halter
2014-09-26 16:29:53 +02:00
parent 522c9eda90
commit 03e01631cc
14 changed files with 36 additions and 37 deletions

View File

@@ -316,7 +316,7 @@ def _star_star_dict(evaluator, array, expression_list, func):
for key_stmt, value_stmt in array.items():
# first index, is the key if syntactically correct
call = key_stmt.expression_list()[0]
if isinstance(call, pr.NamePart):
if isinstance(call, pr.Name):
key = call
elif isinstance(call, pr.Call):
key = call.name