def ReadManifest(jar_file_name):
 with zipfile.ZipFile(jar_file_name) as jar:
  try:
   manifest_string = jar.read(_MANIFEST_NAME)
  except KeyError:
   return None
  return _ParseManifest(manifest_string, jar_file_name)

def ReadManifest ( jar_file_name ) : with zipfile . ZipFile ( jar_file_name ) as jar : try : manifest_string = jar . read ( _MANIFEST_NAME ) except KeyError : return None return _ParseManifest ( manifest_string , jar_file_name )
read and parse the manifest out of the given jar .