parameters: (file_handle, data, compress=1)
docstring: 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.
docstring_summary: Write the data in the given file as a Z-file.
docstring_tokens: Write the data in the given file as a Z - file .
function: def write_zfile(file_handle, data, compress=1):
      """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.
      """
      file_handle.write(_ZFILE_PREFIX)
      length = hex(len(data))
      if sys.version_info[0] < 3 and type(length) is long:
          # We need to remove the trailing 'L' in the hex representation
          length = length[:-1]
      # Store the length of the data
      file_handle.write(length.ljust(_MAX_LEN))
      file_handle.write(zlib.compress(data, compress))
function_tokens: def write_zfile ( file_handle , data , compress = 1 ) : file_handle . write ( _ZFILE_PREFIX ) length = hex ( len ( data ) ) if sys . version_info [ 0 ] < 3 and type ( length ) is long : # We need to remove the trailing 'L' in the hex representation length = length [ : - 1 ] # Store the length of the data file_handle . write ( length . ljust ( _MAX_LEN ) ) file_handle . write ( zlib . compress ( data , compress ) )