Skip to content

Commit

Permalink
Leave __delitem__ unimplemented in filesystem storage
Browse files Browse the repository at this point in the history
- rename the cleaning method
  • Loading branch information
PeterSurda committed Jun 21, 2017
1 parent 618f386 commit 243025a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __setitem__(self, hash, value):
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]
Expand Down Expand Up @@ -172,4 +172,4 @@ def clean(self):
if item.expires < minTime:
deletes.append(hashId)
for hashId in deletes:
del self[hashId]
self.delHashId(hashId)

0 comments on commit 243025a

Please sign in to comment.