Searched refs:zip_file (Results 1 – 2 of 2) sorted by relevance
/build/tools/releasetools/ |
D | test_common.py | 46 def _verify(self, zip_file, zip_file_name, arcname, contents, argument 56 zip_file = zipfile.ZipFile(zip_file_name, "r") 59 info = zip_file.getinfo(arcname) 70 self.assertEqual(zip_file.read(arcname), contents) 71 self.assertIsNone(zip_file.testzip()) 79 zip_file = tempfile.NamedTemporaryFile(delete=False) 80 zip_file_name = zip_file.name 87 zip_file.close() 88 zip_file = zipfile.ZipFile(zip_file_name, "w") 100 common.ZipWrite(zip_file, test_file_name, **extra_zipwrite_args) [all …]
|
D | common.py | 847 def ZipWrite(zip_file, filename, arcname=None, perms=0o644, argument 864 compress_type = zip_file.compression 880 zip_file.write(filename, arcname=arcname, compress_type=compress_type) 887 def ZipWriteStr(zip_file, zinfo_or_arcname, data, perms=None, argument 905 zinfo.compress_type = zip_file.compression 922 zip_file.writestr(zinfo, data) 926 def ZipClose(zip_file): argument 933 zip_file.close()
|