def JarContents(jar_path):
 with zipfile.ZipFile(jar_path) as jar:
  for name in jar.namelist():
   (yield (name, jar.read(name)))

def JarContents ( jar_path ) : with zipfile . ZipFile ( jar_path ) as jar : for name in jar . namelist ( ) : ( yield ( name , jar . read ( name ) ) )
generates pairs for the given jar .