From e924e9208f3669d8ccfd8aaffb82dbbb6420b063 Mon Sep 17 00:00:00 2001 From: lakshyacis Date: Wed, 25 Sep 2019 16:39:15 +0530 Subject: [PATCH] storage flake8 fixes --- src/storage/storage.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/storage/storage.py b/src/storage/storage.py index 050197b8..4e603021 100644 --- a/src/storage/storage.py +++ b/src/storage/storage.py @@ -2,15 +2,17 @@ import collections InventoryItem = collections.namedtuple('InventoryItem', 'type stream payload expires tag') + class Storage(object): """Base class for storing inventory (extendable for other items to store)""" pass # def __init__(self): # super(self.__class__, self).__init__() + class InventoryStorage(Storage, collections.MutableMapping): def __init__(self): -# super(self.__class__, self).__init__() + # super(self.__class__, self).__init__() self.numberOfInventoryLookupsPerformed = 0 def __contains__(self, hash): @@ -47,7 +49,8 @@ class InventoryStorage(Storage, collections.MutableMapping): """Free memory / perform garbage collection""" raise NotImplementedError + class MailboxStorage(Storage, collections.MutableMapping): def __init__(self): -# super(self.__class__, self).__init__() + # super(self.__class__, self).__init__() pass