diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-07-11 18:48:26 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-07-11 18:48:26 +1200 |
commit | 019dd40f03a7180102d414e2a74c2066c88ceec0 (patch) | |
tree | 3efebc60687d58eeb1a400e772be3b3764968926 /insert-remove-test | |
parent | b6251eda38108afdcc02fc902809239d59010e7f (diff) | |
download | larch-019dd40f03a7180102d414e2a74c2066c88ceec0.tar.gz |
Get rid of BTree.root_id and change BTree.root into a real attribute.
Diffstat (limited to 'insert-remove-test')
-rwxr-xr-x | insert-remove-test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/insert-remove-test b/insert-remove-test index 19a5e86..08e7fd9 100755 --- a/insert-remove-test +++ b/insert-remove-test @@ -55,12 +55,12 @@ def assert_refcounts_are_one(tree): if isinstance(node, btree.IndexNode): for key, child_id in node.pairs(): helper(child_id) - helper(tree.root_id) + helper(tree.root.id) def do_insert(tree, key, value): logging.debug('do_insert(%s)' % (repr(key))) - if tree.root_id is not None: + if tree.root is not None: assert_refcounts_are_one(tree) tree.insert(key, value) assert_refcounts_are_one(tree) |