"copy" operation should copy by value, not by reference, fixes #8
This commit is contained in:
@@ -422,5 +422,5 @@ class CopyOperation(PatchOperation):
|
||||
|
||||
def apply(self, obj):
|
||||
subobj, part = self.locate(obj, self.location)
|
||||
value = subobj[part]
|
||||
value = copy.deepcopy(subobj[part])
|
||||
AddOperation(self.operation['to'], {'value': value}).apply(obj)
|
||||
|
||||
Reference in New Issue
Block a user