core (memory/persistent): fixed calls to delPrivateValue

This commit is contained in:
Goffi 2017-07-05 14:50:39 +02:00
commit 3d7e11cd8f

View file

@ -114,7 +114,7 @@ class PersistentDict(object):
return self._cache.__setitem__(key, value)
def __delitem__(self, key):
self.storage.detPrivateValue(self.namepace, key, self.binary, self.profile)
self.storage.delPrivateValue(self.namespace, key, self.binary, self.profile)
return self._cache.__delitem__(key)
def get(self, key, default=None):
@ -209,7 +209,7 @@ class LazyPersistentBinaryDict(PersistentBinaryDict):
self.storage.setPrivateValue(self.namespace, key, value, self.binary, self.profile)
def __delitem__(self, key):
self.storage.detPrivateValue(self.namepace, key, self.binary, self.profile)
self.storage.delPrivateValue(self.namespace, key, self.binary, self.profile)
def _valueOrDefault(self, value, default):
if value is None: