Lines Matching refs:ZipFile
59 with zipfile.ZipFile(f, "w", **kwargs) as zipfp:
71 with zipfile.ZipFile(f, "r", compression) as zipfp:
129 with zipfile.ZipFile(f, "r", compression) as zipfp:
156 with zipfile.ZipFile(path, "r", self.compression) as zipfp:
163 with zipfile.ZipFile(f, "r", compression) as zipfp:
182 with zipfile.ZipFile(f, "r") as zipfp, \
201 with zipfile.ZipFile(f, "r") as zipfp, \
221 with zipfile.ZipFile(f, "r") as zipfp, \
246 with zipfile.ZipFile(f, "r") as zipfp:
260 with zipfile.ZipFile(f, "r") as zipfp:
274 with zipfile.ZipFile(f, "r") as zipfp:
286 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipfp:
290 with zipfile.ZipFile(TESTFN2, "r", self.compression) as zipfp:
296 zipfp = zipfile.ZipFile(TESTFN2, "w")
302 zipfp = zipfile.ZipFile(TESTFN2, "w", compresslevel=1)
323 with zipfile.ZipFile(io.BytesIO(), "w", self.compression) as zipf:
331 with zipfile.ZipFile(fp, mode='w') as zipf:
337 with zipfile.ZipFile(fp) as zipf:
344 with zipfile.ZipFile(fp) as zipf:
352 with zipfile.ZipFile(fp) as zipf:
362 with zipfile.ZipFile(f, 'w', self.compression) as zipfp:
367 with zipfile.ZipFile(f, 'r') as zipfp:
397 with zipfile.ZipFile(TESTFN2, "w", compresslevel=1) as zipfp:
421 with zipfile.ZipFile(f, "r") as zipfp:
433 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
436 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
441 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
444 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
456 with zipfile.ZipFile(TESTFN2, "a", zipfile.ZIP_STORED) as zipfp:
461 with zipfile.ZipFile(f, "r") as zipfp:
467 with io.BytesIO(zipfiledata) as bio, zipfile.ZipFile(bio) as zipfp:
473 with zipfile.ZipFile(bio, 'w', zipfile.ZIP_STORED) as zipfp:
481 with zipfile.ZipFile(TESTFN2) as zipfp:
487 with zipfile.ZipFile(bio, 'w', zipfile.ZIP_STORED) as zipfp:
495 with zipfile.ZipFile(TESTFN2, 'a') as zipfp:
502 with io.BytesIO(zipfiledata) as bio, zipfile.ZipFile(bio) as zipfp:
508 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
512 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
513 self.assertIsInstance(zipfp, zipfile.ZipFile)
516 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
521 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
522 self.assertIsInstance(zipfp, zipfile.ZipFile)
528 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
536 with zipfile.ZipFile(TESTFN2, mode="w") as zipfp:
539 with zipfile.ZipFile(TESTFN2, mode="r") as zipfp:
542 with zipfile.ZipFile(TESTFN2, mode="r") as zipfp:
549 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
561 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
602 with zipfile.ZipFile(f, "w", compression, allowZip64=True) as zipfp:
608 with zipfile.ZipFile(f, "r", compression) as zipfp:
664 zipf = zipfile.ZipFile(TESTFN, "w", self.compression,
673 zipf2 = zipfile.ZipFile(TESTFN, "r", self.compression)
681 zipf = zipfile.ZipFile(TESTFN, "w", self.compression,
693 zipf = zipfile.ZipFile(TESTFN, "a", self.compression,
702 zipf = zipfile.ZipFile(TESTFN, "a", self.compression,
712 zipf2 = zipfile.ZipFile(TESTFN, "r", self.compression)
731 with zipfile.ZipFile(f, "w", compression, allowZip64=False) as zipfp:
736 with zipfile.ZipFile(f, "w", compression, allowZip64=False) as zipfp:
746 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED,
750 with zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) as zipfp:
756 with zipfile.ZipFile(TESTFN2, "w", allowZip64=True) as zipfp:
758 with zipfile.ZipFile(TESTFN2, "r", allowZip64=True) as zipfp:
761 with zipfile.ZipFile(TESTFN2, "a", allowZip64=True) as zipfp:
763 with zipfile.ZipFile(TESTFN2, "r", allowZip64=True) as zipfp:
790 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipf:
801 with zipfile.ZipFile(TESTFN2, "w", self.compression) as zipf:
1021 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1028 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1046 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1074 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1086 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1112 san = zipfile.ZipFile._sanitize_windows_name
1169 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_STORED) as zipfp:
1180 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1188 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1195 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1202 with zipfile.ZipFile(TESTFN2, 'r') as zipfp:
1213 with zipfile.ZipFile(TESTFN2, "w", zipfile.ZIP_STORED) as zipfp:
1219 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1232 with zipfile.ZipFile(TESTFN2, 'w') as orig_zip:
1240 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
1246 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1253 with zipfile.ZipFile(TESTFN2, "w") as zipfp:
1258 with zipfile.ZipFile(TESTFN2, "r") as zipfp2:
1271 self.assertRaises(NotImplementedError, zipfile.ZipFile,
1278 with zipfile.ZipFile(fname) as zipfp:
1283 with zipfile.ZipFile(TESTFN, "w") as zf:
1288 with zipfile.ZipFile(TESTFN, "r") as zf:
1297 with zipfile.ZipFile(TESTFN2, "x", zipfile.ZIP_STORED) as zipfp:
1300 zipfile.ZipFile(TESTFN2, "x", zipfile.ZIP_STORED)
1301 with zipfile.ZipFile(TESTFN2, "r") as zipfp:
1313 with zipfile.ZipFile(TESTFN, 'a') as zf:
1320 with zipfile.ZipFile(TESTFN, 'r') as zf:
1334 zf = zipfile.ZipFile(TESTFN)
1360 with zipfile.ZipFile(fp, mode="w") as zipf:
1368 self.assertRaises(zipfile.BadZipFile, zipfile.ZipFile, fp)
1373 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1401 self.assertRaises(OSError, zipfile.ZipFile, TESTFN)
1406 self.assertRaises(zipfile.BadZipFile, zipfile.ZipFile, TESTFN)
1410 self.assertRaises(zipfile.BadZipFile, zipfile.ZipFile, TESTFN)
1415 with zipfile.ZipFile(data, mode="w") as zipf:
1432 self.assertRaises(ValueError, zipfile.ZipFile, TESTFN, "q")
1436 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1439 with zipfile.ZipFile(TESTFN, mode="r") as zipf:
1450 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1462 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1468 self.assertRaises(NotImplementedError, zipfile.ZipFile, TESTFN, "w", -1)
1478 with zipfile.ZipFile(io.BytesIO(data), 'r') as zipf:
1484 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1499 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1503 with zipfile.ZipFile(TESTFN, mode="r") as zipfr:
1508 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1511 with zipfile.ZipFile(TESTFN, mode="r") as zipfr:
1517 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1521 with zipfile.ZipFile(TESTFN, mode="r") as zipfr:
1525 with zipfile.ZipFile(TESTFN, mode="w") as zipf:
1529 with zipfile.ZipFile(TESTFN, mode="r") as zipfr:
1533 with zipfile.ZipFile(TESTFN,mode="w") as zipf:
1536 with zipfile.ZipFile(TESTFN,mode="a") as zipf:
1538 with zipfile.ZipFile(TESTFN,mode="r") as zipf:
1542 with zipfile.ZipFile(TESTFN,mode="w") as zipf:
1545 with zipfile.ZipFile(TESTFN,mode="a") as zipf:
1547 with zipfile.ZipFile(TESTFN,mode="r") as zipf:
1551 with zipfile.ZipFile(TESTFN, "w", zipfile.ZIP_STORED) as zipf:
1557 with zipfile.ZipFile(TESTFN, "a", zipfile.ZIP_STORED) as zipf:
1560 with zipfile.ZipFile(TESTFN, "r") as zipf:
1564 with zipfile.ZipFile(TESTFN, "w", zipfile.ZIP_STORED) as zipf:
1566 with zipfile.ZipFile(TESTFN, "a", zipfile.ZIP_STORED) as zipf:
1569 with zipfile.ZipFile(TESTFN, "r") as zipf:
1575 zipf = zipfile.ZipFile(TESTFN, mode="w")
1578 zipf = zipfile.ZipFile(TESTFN, mode="r")
1582 zipf = zipfile.ZipFile(TESTFN, mode="a")
1585 zipf = zipfile.ZipFile(TESTFN, mode="r")
1595 self.assertRaises(zipfile.BadZipFile, zipfile.ZipFile, TESTFN, 'r')
1612 with zipfile.ZipFile(io.BytesIO(zipdata), 'r') as zipf:
1621 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_STORED) as zipf:
1639 with zipfile.ZipFile(TESTFN2, 'r') as zipf:
1650 with zipfile.ZipFile(TESTFN, "w") as zipf:
1652 with zipfile.ZipFile(TESTFN, "r") as zipf:
1667 with zipfile.ZipFile(data, mode="w") as zipf:
1669 with zipfile.ZipFile(data, mode="r") as zipf:
1693 with zipfile.ZipFile(io.BytesIO(zipdata), mode="r") as zipf:
1702 with zipfile.ZipFile(io.BytesIO(zipdata), mode="r") as zipf:
1706 with zipfile.ZipFile(io.BytesIO(zipdata), mode="r") as zipf:
1711 with zipfile.ZipFile(io.BytesIO(zipdata), mode="r") as zipf:
1804 self.zip = zipfile.ZipFile(TESTFN, "r")
1807 self.zip2 = zipfile.ZipFile(TESTFN2, "r")
1858 with zipfile.ZipFile(f, "w", compression) as zipfp:
1866 with zipfile.ZipFile(f, "r", compression) as zipfp:
1880 with zipfile.ZipFile(f, "r", compression) as zipfp:
1913 with zipfile.ZipFile(f, "r", compression) as zipfp:
1985 with zipfile.ZipFile(wrapper(bf), 'w', zipfile.ZIP_STORED) as zipfp:
1989 with zipfile.ZipFile(f, mode='r') as zipf:
2001 with zipfile.ZipFile(wrapper(bf), 'w', zipfile.ZIP_STORED) as zipfp:
2010 with zipfile.ZipFile(f, mode='r') as zipf:
2022 with zipfile.ZipFile(wrapper(bf), 'w', zipfile.ZIP_STORED) as zipf:
2028 with zipfile.ZipFile(f) as zipf:
2042 with zipfile.ZipFile(f, "w", zipfile.ZIP_DEFLATED) as zipfp:
2051 with zipfile.ZipFile(f, mode="r") as zipf:
2065 with zipfile.ZipFile(f, mode="r") as zipf:
2079 with zipfile.ZipFile(f, mode="r") as zipf:
2093 with zipfile.ZipFile(f, 'r') as zipf:
2105 with zipfile.ZipFile(f, 'w', zipfile.ZIP_DEFLATED) as zipf:
2111 with zipfile.ZipFile(f, 'r') as zipf:
2119 with zipfile.ZipFile(f, "w", zipfile.ZIP_DEFLATED) as zipf:
2124 with zipfile.ZipFile(f, 'r') as zipf:
2134 with zipfile.ZipFile(TESTFN2, mode="r") as zipf:
2143 with zipfile.ZipFile(TESTFN2, 'w', zipfile.ZIP_DEFLATED) as zipf:
2145 with zipfile.ZipFile(TESTFN2, 'a', zipfile.ZIP_DEFLATED) as zipf:
2152 with zipfile.ZipFile(TESTFN2) as zipf:
2164 with zipfile.ZipFile(findfile("zipdir.zip")) as zipf:
2179 with zipfile.ZipFile(TESTFN, "w") as zipf:
2188 with zipfile.ZipFile(TESTFN, "r") as zipf:
2203 with zipfile.ZipFile(TESTFN, "w") as zipf:
2208 with zipfile.ZipFile(TESTFN, "r") as zipf:
2291 with zipfile.ZipFile(zip_name, 'r') as tf:
2314 with zipfile.ZipFile(TESTFN2) as zf:
2327 with zipfile.ZipFile(zip_name) as zf: