guts: let clone pool keep original objects, allows cloning of table.Table
continuous-integration/drone/push Build is passing Details

sparrow_fix_ffi_display
hvasbath 3 weeks ago
parent 38dcccc155
commit 34deae1fe6

@ -2092,7 +2092,7 @@ def clone(x, pool=None):
pool = {}
if id(x) in pool:
x_copy = pool[id(x)]
x_copy = pool[id(x)][1]
else:
if isinstance(x, SObject):
@ -2119,7 +2119,7 @@ def clone(x, pool=None):
else:
x_copy = copy.deepcopy(x)
pool[id(x)] = x_copy
pool[id(x)] = (x, x_copy)
return x_copy

Loading…
Cancel
Save