Commit 16059f7a authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 28010b70
......@@ -409,9 +409,9 @@ def Restructure(ztree, newStructure):
# normal tree node
zstate = ()
assert len(node.children) == len(node.keyv) + 1
zstate += (node.children[0],)
zstate += (node.children[0].Z,)
for (child, k) in zip(node.children[1:], node.keyv):
zstate += (k, child) # (child0, k0, child1, k1, ..., childN, kN, childN+1)
zstate += (k, child.Z) # (child0, k0, child1, k1, ..., childN, kN, childN+1)
zstate = (zstate,)
# firstbucket
......@@ -427,6 +427,7 @@ def Restructure(ztree, newStructure):
if node.next_bucket is not None: # next
zstate += (node.next_bucket.Z,)
print('ZSTATE:', zstate)
node.Z.__setstate__(zstate)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment