def __init__(self, service, version): self.service = service self.spec = compatible(version) self.version = version
def _get_best_match(self, name, version): spec = compatible(version) return spec.select(Version(v) for v in self.__raw[name])