* fix: forgotten args to delete
This commit is contained in:
+5
-5
@@ -69,13 +69,13 @@ class DBShelf:
|
|||||||
def clear(self, txn = None):
|
def clear(self, txn = None):
|
||||||
def proc(txn):
|
def proc(txn):
|
||||||
for x in self.keys(txn):
|
for x in self.keys(txn):
|
||||||
self.delete(txn)
|
self.db.delete(x, txn)
|
||||||
txn_proc(proc, txn)
|
self.txn_proc(proc, txn)
|
||||||
|
|
||||||
def delete(self, txn):
|
def delete(self, x, txn):
|
||||||
def proc(txn):
|
def proc(txn):
|
||||||
self.db.delete(txn)
|
self.db.delete(x, txn)
|
||||||
txn_proc(proc, txn)
|
self.txn_proc(proc, txn)
|
||||||
|
|
||||||
# another lame pythonic implementation method:
|
# another lame pythonic implementation method:
|
||||||
#def __getattr__(self, name):
|
#def __getattr__(self, name):
|
||||||
|
|||||||
Reference in New Issue
Block a user