def makeZip(fileList, archive):
 try:
  a = zipfile.ZipFile(archive, u'w', zipfile.ZIP_DEFLATED, allowZip64=True)
  for f in fileList:
   a.write(f)
  a.close()
  return True
 except Exception as e:
  sickrage.srCore.srLogger.error((u'Zip creation error: %r ' % repr(e)))
  return False

def makeZip ( fileList , archive ) : try : a = zipfile . ZipFile ( archive , u'w' , zipfile . ZIP_DEFLATED , allowZip64 = True ) for f in fileList : a . write ( f ) a . close ( ) return True except Exception as e : sickrage . srCore . srLogger . error ( ( u'Zip creation error: %r ' % repr ( e ) ) ) return False
create a zip of files .