1
0
forked from VimPlug/jedi

Cleanup the finder.

This commit is contained in:
Dave Halter
2016-12-17 16:59:21 +01:00
parent 437f915f35
commit 589e1906e4
2 changed files with 3 additions and 288 deletions

View File

@@ -42,19 +42,6 @@ def deep_ast_copy(obj, parent=None, new_elements=None):
new_children.append(new_child)
new_obj.children = new_children
# Copy the names_dict (if there is one).
try:
names_dict = obj.names_dict
except AttributeError:
pass
else:
try:
new_obj.names_dict = new_names_dict = {}
except AttributeError: # Impossible to set CompFor.names_dict
pass
else:
for string, names in names_dict.items():
new_names_dict[string] = [new_elements[n] for n in names]
return new_obj
if isinstance(obj, tree.BaseNode):