history: return removed item in NamespaceWrapper.delete()
This is required for the "pop" functionality to work correctly. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
1 parent
ca2bd380cf
commit
a5c455a305
1 file changed
+1
-1
@@ -338,7 +338,7 @@ class NamespaceWrapper:
|
||||
def delete(self, key):
|
||||
if isinstance(key, str) and not self.parse_keys:
|
||||
key = [key]
|
||||
self.db.delete_item(self.namespace, key)
|
||||
return self.db.delete_item(self.namespace, key)
|
||||
|
||||
def __len__(self):
|
||||
return self.db.ns_length(self.namespace)
|
||||
|
||||
Reference in new issue
Block a user