def backupConfigZip(fileList, archive, arcname=None):
 try:
  with zipfile.ZipFile(archive, u'w', zipfile.ZIP_DEFLATED, allowZip64=True) as z:
   for f in list(set(fileList)):
    z.write(f, os.path.relpath(f, arcname))
  return True
 except Exception as e:
  sickrage.srCore.srLogger.error(u'Zip creation error: {} '.format(e.message))
  return False

def backupConfigZip ( fileList , archive , arcname = None ) : try : with zipfile . ZipFile ( archive , u'w' , zipfile . ZIP_DEFLATED , allowZip64 = True ) as z : for f in list ( set ( fileList ) ) : z . write ( f , os . path . relpath ( f , arcname ) ) return True except Exception as e : sickrage . srCore . srLogger . error ( u'Zip creation error: {} ' . format ( e . message ) ) return False
store the config file as a zip .