def _init_from_archive(archive_filename):
    """
    Creates a deployment from a given archive file.
    """
    if zipfile.is_zipfile(archive_filename):
        archive_file = zipfile.ZipFile(archive_filename, mode='r')
        files = archive_file.namelist()
        logging.debug("Found the following in the archive: %s" %(files))
        for file in files:
            try:
                data = archive_file.read(file)
                with open(file, "w") as f:
                    f.write(data)
                logging.debug((file) %"Created %s")
            except KeyError:
                logging.debug("Did not find %s in archive" %(file))
dataset/ETHPy150Open kubernauts/kploy/kploycommon.py/_init_from_archive/swapped operands of `%`