def write_zfile(file_handle, data, compress=1):
    'Write the data in the given file as a Z-file.\n\n    Z-files are raw data compressed with zlib used internally by joblib\n    for persistence. Backward compatibility is not guarantied. Do not\n    use for external purposes.\n    '
    file_handle.write(_ZFILE_PREFIX)
    length = hex_str(len(data))
    file_handle.write(asbytes(length.ljust(_MAX_LEN)))
    file_handle.write(zlib.compress(asbytes(data), compress))
Write the data in the given file as a Z-file.

Z-files are raw data compressed with zlib used internally by joblib
for persistence. Backward compatibility is not guarantied. Do not
use for external purposes.
def write_zfile(file_handle, data, compress=1):
    'Write the data in the given file as a Z-file.\n\n    Z-files are raw data compressed with zlib used internally by joblib\n    for persistence. Backward compatibility is not guarantied. Do not\n    use for external purposes.\n    '
    file_handle.write(_ZFILE_PREFIX)
    length = hex_str(len(data))
    file_handle.write(asbytes(length.ljust(_MAX_LEN)))
    file_handle.write(zlib.compress(asbytes(data), compress))