我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用zipfile.set_expected_hash()。
def set_expected_hash(self, name, hash): """ :param name: name of zip entry :param hash: bytes of hash (or None for "don't care") """ self._expected_hashes[name] = hash