Leave __delitem__ unimplemented in filesystem storage
- rename the cleaning method
This commit is contained in:
parent
618f3865c1
commit
243025a1aa
|
@ -65,7 +65,7 @@ class FilesystemInventory(InventoryStorage):
|
|||
self._inventory[value.stream] = {}
|
||||
self._inventory[value.stream][hash] = value
|
||||
|
||||
def __delitem__(self, hash):
|
||||
def delHashId(self, hash):
|
||||
for stream in self._inventory.keys():
|
||||
try:
|
||||
del self._inventory[stream][hash]
|
||||
|
@ -172,4 +172,4 @@ class FilesystemInventory(InventoryStorage):
|
|||
if item.expires < minTime:
|
||||
deletes.append(hashId)
|
||||
for hashId in deletes:
|
||||
del self[hashId]
|
||||
self.delHashId(hashId)
|
||||
|
|
Loading…
Reference in New Issue
Block a user