Example #1
0
 def cached_contents(self, path):
     return path.text()
Example #2
0
 def cached_contents(self, path):
     return path.text()
Example #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())
Example #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())