forked from VimPlug/jedi
deepcopy removed at one place, tests being 12s faster (from 20s to 8s)
This commit is contained in:
@@ -245,7 +245,8 @@ class InstanceElement(object):
|
||||
# Copy and modify the array.
|
||||
origin = self.var.get_assignment_calls()
|
||||
origin.parent_stmt, temp = None, origin.parent_stmt
|
||||
new = copy.deepcopy(origin)
|
||||
# Delete parent, because it isn't used anymore.
|
||||
new = helpers.fast_parent_copy(origin)
|
||||
origin.parent_stmt = temp
|
||||
new.parent_stmt = InstanceElement(self.instance, temp)
|
||||
return new
|
||||
|
||||
Reference in New Issue
Block a user