From 243025a1aa6aff8d3dde4a4abb7f201249f2d38a Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 21 Jun 2017 12:17:40 +0200 Subject: [PATCH] Leave __delitem__ unimplemented in filesystem storage - rename the cleaning method --- src/storage/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/filesystem.py b/src/storage/filesystem.py index 4efe1132..d64894a9 100644 --- a/src/storage/filesystem.py +++ b/src/storage/filesystem.py @@ -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)