Lines Matching refs:LZMAFile

16 from lzma import LZMACompressor, LZMADecompressor, LZMAError, LZMAFile
534 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
536 with LZMAFile(BytesIO(), "w") as f:
538 with LZMAFile(BytesIO(), "x") as f:
540 with LZMAFile(BytesIO(), "a") as f:
546 with LZMAFile(filename) as f:
548 with LZMAFile(filename, "a") as f:
550 with LZMAFile(filename) as f:
555 with LZMAFile(TESTFN) as f:
557 with LZMAFile(TESTFN, "w") as f:
559 with LZMAFile(TESTFN, "a") as f:
564 with LZMAFile(TESTFN, "r"):
566 with LZMAFile(TESTFN, "rb"):
568 with LZMAFile(TESTFN, "w"):
570 with LZMAFile(TESTFN, "wb"):
572 with LZMAFile(TESTFN, "a"):
574 with LZMAFile(TESTFN, "ab"):
581 with LZMAFile(TESTFN, mode):
584 with LZMAFile(TESTFN, mode):
589 LZMAFile(BytesIO(COMPRESSED_XZ), (3, "x"))
591 LZMAFile(BytesIO(COMPRESSED_XZ), "")
593 LZMAFile(BytesIO(COMPRESSED_XZ), "xt")
595 LZMAFile(BytesIO(COMPRESSED_XZ), "x+")
597 LZMAFile(BytesIO(COMPRESSED_XZ), "rx")
599 LZMAFile(BytesIO(COMPRESSED_XZ), "wx")
601 LZMAFile(BytesIO(COMPRESSED_XZ), "rt")
603 LZMAFile(BytesIO(COMPRESSED_XZ), "r+")
605 LZMAFile(BytesIO(COMPRESSED_XZ), "wt")
607 LZMAFile(BytesIO(COMPRESSED_XZ), "w+")
609 LZMAFile(BytesIO(COMPRESSED_XZ), "rw")
613 LZMAFile(BytesIO(), "w", check=b"asd")
616 LZMAFile(BytesIO(), "w", check=lzma.CHECK_UNKNOWN)
618 LZMAFile(BytesIO(), "w", check=lzma.CHECK_ID_MAX + 3)
621 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_NONE)
623 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC32)
625 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_CRC64)
627 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_SHA256)
629 LZMAFile(BytesIO(COMPRESSED_XZ), check=lzma.CHECK_UNKNOWN)
633 LZMAFile(BytesIO(), "w", preset=4.39)
635 LZMAFile(BytesIO(), "w", preset=10)
637 LZMAFile(BytesIO(), "w", preset=23)
639 LZMAFile(BytesIO(), "w", preset=-1)
641 LZMAFile(BytesIO(), "w", preset=-7)
643 LZMAFile(BytesIO(), "w", preset="foo")
646 LZMAFile(BytesIO(COMPRESSED_XZ), preset=3)
650 LZMAFile(BytesIO(), "w", filters=[b"wobsite"])
652 LZMAFile(BytesIO(), "w", filters=[{"xyzzy": 3}])
654 LZMAFile(BytesIO(), "w", filters=[{"id": 98765}])
656 LZMAFile(BytesIO(), "w",
659 LZMAFile(BytesIO(), "w",
662 LZMAFile(BytesIO(), "w",
667 LZMAFile(BytesIO(), "w", format=lzma.FORMAT_RAW,
672 f = LZMAFile(src)
682 f = LZMAFile(TESTFN)
691 f = LZMAFile(BytesIO(COMPRESSED_XZ))
700 f = LZMAFile(BytesIO(), "w")
708 f = LZMAFile(BytesIO(COMPRESSED_XZ))
715 f = LZMAFile(TESTFN)
724 f = LZMAFile(BytesIO(COMPRESSED_XZ))
733 f = LZMAFile(BytesIO(), "w")
742 f = LZMAFile(src)
750 f = LZMAFile(BytesIO(COMPRESSED_XZ))
759 f = LZMAFile(BytesIO(), "w")
767 f = LZMAFile(BytesIO(COMPRESSED_XZ))
776 f = LZMAFile(BytesIO(), "w")
784 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
787 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
789 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
792 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
795 with LZMAFile(BytesIO(COMPRESSED_RAW_1),
799 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
803 with LZMAFile(BytesIO(COMPRESSED_RAW_3),
807 with LZMAFile(BytesIO(COMPRESSED_RAW_4),
813 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
815 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
817 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
819 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
823 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
834 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
836 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_ALONE)) as f:
838 with LZMAFile(BytesIO(COMPRESSED_RAW_3 * 4),
848 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
854 with LZMAFile(BytesIO(COMPRESSED_XZ + COMPRESSED_BOGUS)) as f:
858 with LZMAFile(BytesIO(COMPRESSED_XZ * 5 + COMPRESSED_BOGUS)) as f:
863 with LZMAFile(TESTFN) as f:
873 with LZMAFile(bytes_filename) as f:
878 with LZMAFile(BytesIO(COMPRESSED_XZ[:128])) as f:
885 with LZMAFile(BytesIO(truncated)) as f:
887 with LZMAFile(BytesIO(truncated)) as f:
892 with LZMAFile(BytesIO(truncated[:i])) as f:
896 f = LZMAFile(BytesIO(COMPRESSED_XZ))
899 with LZMAFile(BytesIO(), "w") as f:
901 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
905 with LZMAFile(BytesIO(COMPRESSED_BOGUS)) as f:
909 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
920 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
924 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
935 with LZMAFile(BytesIO(COMPRESSED_XZ * 5)) as f:
946 f = LZMAFile(BytesIO(COMPRESSED_XZ))
949 with LZMAFile(BytesIO(), "w") as f:
951 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
955 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
960 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
967 with LZMAFile(BytesIO(), "w") as f:
973 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
975 with LZMAFile(BytesIO(COMPRESSED_ALONE)) as f:
977 with LZMAFile(BytesIO(COMPRESSED_XZ), format=lzma.FORMAT_XZ) as f:
979 with LZMAFile(BytesIO(COMPRESSED_ALONE), format=lzma.FORMAT_ALONE) as f:
981 with LZMAFile(BytesIO(COMPRESSED_RAW_2),
988 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
995 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1003 decomp = LZMAFile(BytesIO(bomb))
1011 with LZMAFile(dst, "w") as f:
1016 with LZMAFile(dst, "w", format=lzma.FORMAT_XZ) as f:
1021 with LZMAFile(dst, "w", format=lzma.FORMAT_ALONE) as f:
1026 with LZMAFile(dst, "w", format=lzma.FORMAT_RAW,
1035 with LZMAFile(dst, "w") as f:
1047 with LZMAFile(dst, "w") as f:
1049 with LZMAFile(dst, "a") as f:
1051 with LZMAFile(dst, "a") as f:
1057 with LZMAFile(TESTFN, "w") as f:
1071 with LZMAFile(bytes_filename, "w") as f:
1085 with LZMAFile(TESTFN, "w") as f:
1087 with LZMAFile(TESTFN, "a") as f:
1089 with LZMAFile(TESTFN, "a") as f:
1097 f = LZMAFile(BytesIO(), "w")
1100 with LZMAFile(BytesIO(COMPRESSED_XZ), "r") as f:
1102 with LZMAFile(BytesIO(), "w") as f:
1111 with LZMAFile(dst, "w") as f:
1117 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1122 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1127 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1133 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1138 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1144 with LZMAFile(BytesIO(COMPRESSED_XZ * 2)) as f:
1150 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1155 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1161 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1167 f = LZMAFile(BytesIO(COMPRESSED_XZ))
1170 with LZMAFile(BytesIO(), "w") as f:
1172 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1180 with LZMAFile(BytesIO(COMPRESSED_XZ)) as f:
1189 with LZMAFile(BytesIO(), "w") as f:
1196 f = LZMAFile(BytesIO(COMPRESSED_XZ))