summaryrefslogtreecommitdiff
path: root/insert-remove-test
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-02-23 15:01:26 +0000
committerLars Wirzenius <liw@liw.fi>2011-02-23 15:01:26 +0000
commit678c1be35b6cb7a33def6389351157b1aa010822 (patch)
treee17210a5daf74548333af402b4231e105cf2be23 /insert-remove-test
parent6849f2a2ce7c12cb55a64b93775704a2f491817e (diff)
downloadlarch-678c1be35b6cb7a33def6389351157b1aa010822.tar.gz
Change the forest factory to be a function, instead.
No point in a class, since every call needs all parameters anyway.
Diffstat (limited to 'insert-remove-test')
-rwxr-xr-xinsert-remove-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/insert-remove-test b/insert-remove-test
index 3f81c73..b88b016 100755
--- a/insert-remove-test
+++ b/insert-remove-test
@@ -95,7 +95,7 @@ def main():
if os.path.exists(location):
raise Exception('%s exists already' % location)
os.mkdir(location)
- ns = btree.NodeStoreDisk(location, node_size, codec)
+ ns = btree.NodeStoreDisk(node_size, codec, dirname=location)
forest = btree.Forest(ns)
tree = forest.new_tree()