Move InMemoryConfigStorage to a separate file

This commit is contained in:
Rafa de la Torre
2016-10-03 13:12:49 +02:00
parent 86ab3abc53
commit 3361960cfc
5 changed files with 25 additions and 24 deletions
@@ -0,0 +1,12 @@
from interfaces import ConfigStorageInterface
class InMemoryConfigStorage(ConfigStorageInterface):
def __init__(self, config_hash={}):
self._config_hash = config_hash
def get(self, key):
try:
return self._config_hash[key]
except KeyError:
return None
@@ -13,18 +13,6 @@ class InDbServerConfigStorage(ConfigStorageInterface):
else:
return None
class InMemoryConfigStorage(ConfigStorageInterface):
def __init__(self, config_hash={}):
self._config_hash = config_hash
def get(self, key):
try:
return self._config_hash[key]
except KeyError:
return None
class NullConfigStorage(ConfigStorageInterface):
def get(self, key):