Home
last modified time | relevance | path

Searched refs:bz2 (Results 1 - 25 of 25) sorted by relevance

/third_party/python/Lib/encodings/
H A Dbz2_codec.py1 """Python 'bz2_codec' Codec - bz2 compression encoding.
11 import bz2 # this codec needs the optional bz2 module ! namespace
17 return (bz2.compress(input), len(input))
21 return (bz2.decompress(input), len(input))
33 self.compressobj = bz2.BZ2Compressor()
43 self.compressobj = bz2.BZ2Compressor()
49 self.decompressobj = bz2.BZ2Decompressor()
58 self.decompressobj = bz2.BZ2Decompressor()
70 name="bz2",
[all...]
/third_party/python/Doc/
H A DMakefile189 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2)
191 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-a4.tar.bz2
197 (cd build/latex; make clean && make all-pdf && make FMT=pdf zip bz2)
199 cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2
/third_party/python/Lib/test/
H A Dtest_bz2.py23 # Skip tests if the bz2 module doesn't exist.
24 bz2 = import_helper.import_module('bz2') variable
25 from bz2 import BZ2File, BZ2Compressor, BZ2Decompressor
36 return bz2.decompress(data)
80 BIG_DATA = bz2.compress(BIG_TEXT, compresslevel=1)
267 expected = bz2.compress(self.TEXT, compresslevel=5)
563 bomb = bz2.compress(b'\0' * int(2e6), compresslevel=9)
672 data = bz2.decompress(compressed)
728 compressed = bz2
[all...]
H A Dtest_fileinput.py16 import bz2 namespace
18 bz2 = None variable
885 @unittest.skipUnless(bz2, "Requires bz2")
887 original_open = bz2.BZ2File
888 bz2.BZ2File = self.fake_open
890 result = fileinput.hook_compressed("test.bz2", "r")
892 bz2.BZ2File = original_open
895 self.assertEqual(self.fake_open.last_invocation, (("test.bz2", "r"), {}))
H A Dtest_tarfile.py32 import bz2 namespace
34 bz2 = None variable
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', compressleve
[all...]
H A Dtest_codecs.py2723 import bz2 namespace
2728 transform_aliases["bz2_codec"] = ["bz2"]
2839 # Unfortunately, the bz2 module throws OSError, which the codec
/third_party/node/tools/icu/
H A Dshrink-icu-src.py8 import bz2 namespace
41 compression_suffix = '.bz2'
44 with bz2.BZ2File(outfp, 'wb') as outf:
/third_party/mesa3d/.gitlab-ci/piglit/
H A Dpiglit-traces.sh162 ./piglit summary console "$RESULTS"/results.json.bz2 \
182 "$RESULTS"/summary "$RESULTS"/results.json.bz2
/third_party/python/Lib/distutils/tests/
H A Dtest_archive_util.py40 import bz2 namespace
42 bz2 = None variable
79 @unittest.skipUnless(bz2, 'Need bz2 support to run')
82 self._make_tarball(tmpdir, 'archive', '.tar.bz2', compress='bzip2')
320 @unittest.skipUnless(bz2, 'Need bz2 support to run')
326 self.assertEqual(os.path.basename(res), 'archive.tar.bz2')
/third_party/libcoap/scripts/
H A Ddist.sh60 ARCHIVE=`ls -1t libcoap-*.tar.bz2 |head -1`
/third_party/ltp/testcases/commands/file/
H A Dfile01.sh80 12) file_test in.tar.bz2 "bzip2 compressed data, .*";;
/third_party/node/deps/v8/tools/jsfunfuzz/
H A Dfuzz-harness.sh92 archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2
/third_party/python/Lib/
H A Dfileinput.py408 elif ext == '.bz2':
409 import bz2 namespace
410 stream = bz2.BZ2File(filename, mode)
414 # gzip and bz2 are binary mode by default.
H A Dzipfile.py30 import bz2 # We may need its compression method namespace
32 bz2 = None variable
704 if not bz2:
706 "Compression requires the (missing) bz2 module")
722 return bz2.BZ2Compressor(compresslevel)
723 return bz2.BZ2Compressor()
738 return bz2.BZ2Decompressor()
1233 ZIP_BZIP2 (requires bz2) or ZIP_LZMA (requires lzma).
H A Dtarfile.py380 elif comptype == "bz2":
382 import bz2 namespace
384 raise CompressionError("bz2 module is not available") from None
387 self.cmp = bz2.BZ2Decompressor()
390 self.cmp = bz2.BZ2Compressor()
591 return "bz2"
1785 'r:bz2' open for reading with bzip2 compression
1790 'w:bz2' open for writing with bzip2 compression
1797 'x:bz2' create a bzip2 compressed tarfile, raise an exception
1805 'r|bz2' ope
[all...]
H A Dshutil.py22 import bz2 namespace
23 del bz2
911 the appropriate compression extension (".gz", ".bz2", or ".xz").
920 tar_compression = 'bz2'
1235 """Unpack tar/tar.gz/tar.bz2/tar.xz `filename` to `extract_dir`
1263 _UNPACK_FORMATS['bztar'] = (['.tar.bz2', '.tbz2'], _unpack_tarfile, [],
/third_party/python/Tools/ccbench/
H A Dccbench.py108 """bz2 compression (C)"""
109 import bz2 namespace
114 bz2.compress(s)
129 for mod in 'bz2', 'hashlib':
135 # For whatever reasons, zlib gives irregular results, so we prefer bz2 or
138 if bz2 is not None:
/third_party/elfutils/tests/
H A Dtest-subr.sh50 bunzip2 -c ${abs_srcdir}/${file}.bz2 > ${file} || exit 77
H A Drun-debuginfod-find.sh126 env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -F -R -d $DB -p $PORT1 -t0 -g0 --fdcache-fds 1 --fdcache-mbs 2 --fdcache-mintmp 0 -Z .tar.xz -Z .tar.bz2=bzcat -v R F Z L > vlog$PORT1 2>&1 &
321 tb2=$(find Z -name \*tar.bz2 | wc -l)
322 wait_ready $PORT1 'scanned_files_total{source=".tar.bz2 archive"}' $tb2
/third_party/ffmpeg/tests/fate/
H A Dmatroska.mak5 # upon demuxing; it also tests bz2 decompression and unknown-length cluster.
6 FATE_MATROSKA-$(call ALLYES, MATROSKA_DEMUXER BZLIB) += fate-matroska-prores-header-insertion-bz2
7 fate-matroska-prores-header-insertion-bz2: CMD = framecrc -i $(TARGET_SAMPLES)/mkv/prores_bz2.mkv -map 0 -c copy
/third_party/mesa3d/src/gallium/tools/trace/
H A Dpytracediff.py238 elif filename.endswith(".bz2"):
239 from bz2 import BZ2File
294 help="Gallium trace XML filename (plain or .gz, .bz2)")
299 help="Gallium trace XML filename (plain or .gz, .bz2)")
H A Dparse.py432 elif fname.endswith('.bz2'):
433 from bz2 import BZ2File
457 type=str, metavar="filename", help="Gallium trace filename (plain or .gz, .bz2)")
/third_party/python/Lib/test/support/
H A D__init__.py478 def requires_bz2(reason='requires bz2'):
480 import bz2 namespace
482 bz2 = None
483 return unittest.skipUnless(bz2, reason)
/third_party/node/
H A Dconfigure.py13 import bz2 namespace
1902 compressed_data = f'{icu_data_path}.bz2'
1910 inf = bz2.BZ2File(compressed_data, 'rb')
/third_party/pcre2/pcre2/
H A DRunGrepTest1006 # Test reading .gz and .bz2 files when supported.
1016 if $valgrind $vjs $pcre2grep --help | $valgrind $vjs $pcre2grep -q '\.bz2 are read using bzlib2'; then
1017 echo "Testing reading .bz2 file"
1018 $valgrind $vjs $pcre2grep 'one|two' $srcdir/testdata/grepinputC.bz2 >testtrygrep
1020 $valgrind $vjs $pcre2grep 'one|two' $srcdir/testdata/grepnot.bz2 >>testtrygrep

Completed in 33 milliseconds