def __init__(self, src: bool = True, binary: bool = False, arch_from_filename: bool = False, vertags: Any = None) -> None: if not src and not binary: raise RuntimeError('at least one of "src" and "binary" modes for RepodataParser must be enabled') self._src = src self._binary = binary self._arch_from_filename = arch_from_filename self._vertags = parse_rpm_vertags(vertags)
def __init__(self, encoding: str = 'utf-8', vertags: Any = None) -> None: self._encoding = encoding self._vertags = parse_rpm_vertags(vertags)
def __init__(self, vertags: Any = None) -> None: self._vertags = parse_rpm_vertags(vertags)