def __init__(self): unordered = { name: Repository(name, url) for (name, url) in REPOSITORIES.items() } self.repositories = OrderedDict( sorted(unordered.items(), key=lambda x: x[0])) for repo in self.repositories.values(): repo.refresh()
def get_toplevel_categories(self): return list(REPOSITORIES.keys())
def __init__(self): unordered = {name: Repository(name, url) for (name, url) in REPOSITORIES.items()} self.repositories = OrderedDict(sorted(unordered.items(), key=lambda x: x[0])) for repo in self.repositories.values(): repo.refresh()