Beispiel #1
0
 def parser(self):
     """ get the parser lazy """
     if self._parser is None:
         self._parser = cache.load_module(self.path, self.name) \
             or self._load_module()
     return self._parser
Beispiel #2
0
def load_stored_item(cache, path, item):
    """Load `item` stored at `path` in `cache`."""
    return cache.load_module(path, item.change_time - 1)
Beispiel #3
0
 def parser(self):
     """ get the parser lazy """
     if self._parser is None:
         self._parser = cache.load_module(self.path, self.name) \
                             or self._load_module()
     return self._parser
Beispiel #4
0
def load_stored_item(cache, path, item):
    """Load `item` stored at `path` in `cache`."""
    return cache.load_module(path, item.change_time - 1)