storage flake8 fixes

This commit is contained in:
lakshyacis 2019-09-25 16:39:15 +05:30
parent da5d085a39
commit e924e9208f
No known key found for this signature in database
GPG Key ID: D2C539C8EC63E9EB

View File

@ -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