core (memory/persistent): fixed calls to delPrivateValue
This commit is contained in:
parent
3b8aa22931
commit
3d7e11cd8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue