Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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)