diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-02-23 15:01:26 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-02-23 15:01:26 +0000 |
commit | 678c1be35b6cb7a33def6389351157b1aa010822 (patch) | |
tree | e17210a5daf74548333af402b4231e105cf2be23 /example.py | |
parent | 6849f2a2ce7c12cb55a64b93775704a2f491817e (diff) | |
download | larch-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 'example.py')
-rw-r--r-- | example.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ def open_tree(dirname): node_size = 4096 codec = btree.NodeCodec(key_size) - ns = btree.NodeStoreDisk(dirname, node_size, codec) + ns = btree.NodeStoreDisk(node_size, codec, dirname=dirname) forest = btree.Forest(ns) if forest.trees: tree = forest.trees[0] |