Lines Matching refs:bz2
32 import bz2
34 bz2 = None
47 bz2name = os.path.join(TEMPDIR, "testtar.tar.bz2")
80 suffix = 'bz2'
81 open = bz2.BZ2File if bz2 else None
902 with bz2.BZ2File(tmpname, "wb", compresslevel=1) as fobj:
1620 decompressor = bz2.BZ2Decompressor if bz2 else None
1858 with tarfile.open(tmpname, 'r:bz2', compresslevel=1) as tobj:
1864 # Unlike gz and bz2, xz uses the preset keyword instead of compresslevel.
2840 data = bz2.compress(tarfile.TarInfo("foo").tobuf())
2851 self._test_partial_input("r:bz2")