Yngvarr

Generation

generate functionSat, 07 Jan 2023

pack to gz and return archive

def pack_to_gz(file): f_in = open(file, 'rb') f_out = gzip.open('file.gz', 'wb') f_out.writelines(f_in) f_out.close() f_in.close() return f_out

Questions about programming?Chat with your personal AI assistant