"copy" operation should copy by value, not by reference, fixes #8

This commit is contained in:
Stefan Kögl
2012-09-14 15:22:42 +02:00
parent 3829275ade
commit 46334177e5
2 changed files with 13 additions and 1 deletions

View File

@@ -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)