forked from VimPlug/jedi
Cleanup the finder.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user