def _extract_file(zip_fp, info, path):
    """Extract files while explicitly setting the proper permissions"""
    zip_fp.extract(info.filename, path=path)
    out_path = os.path.join(path, info.filename)

    perm = info.external_attr >> 16
    perm |= stat.S_IREAD  # make sure we're not accidentally setting this to 0
    os.chmod(out_path, perm)
def _extract_file ( zip_fp , info , path ) : zip_fp . extract ( info . filename , path = path ) out_path = os . path . join ( path , info . filename ) perm = info . external_attr >> 16 perm |= stat . S_IREAD os . chmod ( out_path , perm )
Extract files while explicitly setting the proper permissions