l.r.s.p.h.Hose : class documentation

Part of lp.registry.scripts.productreleasefinder.hose View In Hierarchy

Hose.

This class should be instantiated with a dictionary of url and glob pairs, it will use a walker to recursively decend each URL and map each URL to a file.

It can be used as an iterator to yield (key, url) for each URL where key is one of the dictionary keys or None if none matched.

Method __init__ Undocumented
Method reduceWork Simplify URL list to remove children of other elements.
Method run Run over the URL list.
def __init__(self, filters=(), log_parent=None):
Undocumented
def reduceWork(self, url_list):
Simplify URL list to remove children of other elements.

Reduces the amount of work we need to do by removing any URL from the list whose parent also appears in the list. Returns the reduced list.

def run(self):
Run over the URL list.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.