Пример #1
0
 def cached_contents(self, path):
     return path.text()
Пример #2
0
 def cached_contents(self, path):
     return path.text()
Пример #3
0
 def cached_contents(self, path):
     # todo: make a selfmemoize
     try:
         return self._cached_contents[path]
     except KeyError:
         return self._cached_contents.setdefault(path, path.text())
Пример #4
0
 def cached_contents(self, path):
     # todo: make a selfmemoize
     try: return self._cached_contents[path]
     except KeyError: return self._cached_contents.setdefault(path, path.text())