jupyterlab_dosbox/utils.py
def recompress_zipfile(input_filename, prefix_directory = ""):
    """
    This accepts an input filename of a zip file that needs to be converted
    to something that is just ZIP_STORED, and it returns the bytes of the new
    version.  It does keep it all in memory, though!
    """
    output_bytes = {}
    with zipfile.ZipFile(input_filename, "r") as f:
        for fn in f.namelist():
            output_bytes[fn] = f.read(fn)
    return make_zipfile(output_bytes, prefix_directory)

    This accepts an input filename of a zip file that needs to be converted
    to something that is just ZIP_STORED, and it returns the bytes of the new
    version.  It does keep it all in memory, though!
    
This accepts an input filename of a zip file that needs to be converted
to something that is just ZIP_STORED, and it returns the bytes of the new
version.  It does keep it all in memory, though!
This accepts an input filename of a zip file that needs to be converted to something that is just ZIP_STORED and it returns the bytes of the new version . It does keep it all in memory though!
def recompress_zipfile(input_filename, prefix_directory = ""):
    output_bytes = {}
    with zipfile.ZipFile(input_filename, "r") as f:
        for fn in f.namelist():
            output_bytes[fn] = f.read(fn)
    return make_zipfile(output_bytes, prefix_directory)
def recompress_zipfile ( input_filename , prefix_directory = "" ) : output_bytes = { } with zipfile . ZipFile ( input_filename , "r" ) as f : for fn in f . namelist ( ) : output_bytes [ fn ] = f . read ( fn ) return make_zipfile ( output_bytes , prefix_directory )
This accepts an input filename of a zip file that needs to be converted
to something that is just ZIP_STORED, and it returns the bytes of the new
version.
This accepts an input filename of a zip file that needs to be converted to something that is just ZIP_STORED and it returns the bytes of the new version .
"""
    This accepts an input filename of a zip file that needs to be converted
    to something that is just ZIP_STORED, and it returns the bytes of the new
    version.  It does keep it all in memory, though!
    """
input_filename
prefix_directory