comparison src/memory/persistent.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents 9902ec2d8d9b
children beaf6bec2fcd
comparison
equal deleted inserted replaced
586:6a718ede8be1 587:952322b1d490
72 def __ge__(self, other): 72 def __ge__(self, other):
73 return self._cache.__ge__(other) 73 return self._cache.__ge__(other)
74 74
75 def __cmp__(self, other): 75 def __cmp__(self, other):
76 return self._cache.__cmp__(other) 76 return self._cache.__cmp__(other)
77 77
78 def __hash__(self): 78 def __hash__(self):
79 return self._cache.__hash__() 79 return self._cache.__hash__()
80 80
81 def __nonzero__(self): 81 def __nonzero__(self):
82 return self._cache.__len__() 82 return self._cache.__len__()
115 return self.storage.setIndPrivate(self.namespace, name, self._cache[name], self.profile) 115 return self.storage.setIndPrivate(self.namespace, name, self._cache[name], self.profile)
116 116
117 117
118 class PersistentBinaryDict(PersistentDict): 118 class PersistentBinaryDict(PersistentDict):
119 """Persistent dict where value can be any python data (instead of string only)""" 119 """Persistent dict where value can be any python data (instead of string only)"""
120 120
121 def load(self): 121 def load(self):
122 """load persistent data from storage 122 """load persistent data from storage
123 """ 123 """
124 if not self.profile: 124 if not self.profile:
125 return self.storage.loadGenPrivatesBinary(self._cache, self.namespace) 125 return self.storage.loadGenPrivatesBinary(self._cache, self.namespace)