forked from VimPlug/jedi
cleanup
This commit is contained in:
@@ -287,13 +287,11 @@ def _star_star_dict(evaluator, array, expression_list):
|
|||||||
elif isinstance(call, pr.Call):
|
elif isinstance(call, pr.Call):
|
||||||
key = call.name
|
key = call.name
|
||||||
else:
|
else:
|
||||||
continue
|
continue # We ignore complicated statements here, for now.
|
||||||
# raise warning
|
|
||||||
if str(key) not in dct:
|
# If the string is a duplicate, we don't care it's illegal Python
|
||||||
|
# anyway.
|
||||||
dct[str(key)] = key, value_stmt
|
dct[str(key)] = key, value_stmt
|
||||||
else:
|
|
||||||
pass
|
|
||||||
# raise warning
|
|
||||||
else:
|
else:
|
||||||
if expression_list:
|
if expression_list:
|
||||||
m = "TypeError: type object argument after ** must be a mapping, not %s" \
|
m = "TypeError: type object argument after ** must be a mapping, not %s" \
|
||||||
|
|||||||
Reference in New Issue
Block a user