Mercurial > libervia-backend
comparison sat/memory/persistent.py @ 2765:378188abe941
misc: replaced all "dummy" by the more conventional and readable "__" ("_" being used for gettext)
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Jan 2019 11:13:15 +0100 |
parents | 9702025f6dff |
children | 003b8b4b56a7 |
comparison
equal
deleted
inserted
replaced
2764:92af49cde255 | 2765:378188abe941 |
---|---|
57 need to be called before any other operation | 57 need to be called before any other operation |
58 @return: defers the PersistentDict instance itself | 58 @return: defers the PersistentDict instance itself |
59 """ | 59 """ |
60 d = self.storage.getPrivates(self.namespace, binary=self.binary, profile=self.profile) | 60 d = self.storage.getPrivates(self.namespace, binary=self.binary, profile=self.profile) |
61 d.addCallback(self._setCache) | 61 d.addCallback(self._setCache) |
62 d.addCallback(lambda dummy: self) | 62 d.addCallback(lambda __: self) |
63 return d | 63 return d |
64 | 64 |
65 def iteritems(self): | 65 def iteritems(self): |
66 return self._cache.iteritems() | 66 return self._cache.iteritems() |
67 | 67 |