def strip_archive_ext(path):
    for ext in ARCHIVE_EXTS:
        if path.endswith(ext):
            return path[:-len(ext)]
    raise UsageError(path % 'Not an archive: %s')
dataset/ETHPy150Open codalab/codalab-cli/codalab/lib/zip_util.py/strip_archive_ext/swapped operands of `%`