Home
last modified time | relevance | path

Searched refs:tarfile (Results 1 – 25 of 47) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_tarfile.py11 import tarfile
46 self.tar = tarfile.open(self.tarname, mode=self.mode, encoding="iso8859-1")
166 self.tar = tarfile.open(self.tarname, mode=self.mode)
227 taropen = tarfile.TarFile.gzopen
233 taropen = tarfile.TarFile.bz2open
243 with tarfile.open(tmpname, self.mode.replace("r", "w")):
246 tar = tarfile.open(tmpname, self.mode)
248 except tarfile.ReadError:
261 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode)
262 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname)
[all …]
Dtest_shutil.py16 import tarfile
393 self.assertTrue(tarfile.is_tarfile(tarball))
394 with tarfile.open(tarball, 'r:gz') as tf:
404 self.assertTrue(tarfile.is_tarfile(tarball))
405 with tarfile.open(tarball, 'r') as tf:
411 with tarfile.open(path) as tar:
597 archive = tarfile.open(archive_name)
/external/python/cpython2/Lib/
Dtarfile.py799 def __init__(self, tarfile, tarinfo): argument
800 self.fileobj = _FileInFile(tarfile.fileobj,
1247 def fromtarfile(cls, tarfile): argument
1251 buf = tarfile.fileobj.read(BLOCKSIZE)
1253 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
1254 return obj._proc_member(tarfile)
1267 def _proc_member(self, tarfile): argument
1272 return self._proc_gnulong(tarfile)
1274 return self._proc_sparse(tarfile)
1276 return self._proc_pax(tarfile)
[all …]
Dshutil.py373 import tarfile # late import so Python build itself doesn't break
391 tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
/external/jsoncpp/devtools/
Dtarball.py3 import tarfile
32 tar = tarfile.TarFile.gzopen( tarball_path, 'w', compresslevel=compression )
49 tar = tarfile.TarFile.gzopen(tarball_path, mode='r')
/external/devlib/devlib/module/
Dandroid.py19 import tarfile
73 if not tarfile.is_tarfile(image_bundle):
75 with tarfile.open(image_bundle) as tar:
87 with tarfile.open(image_bundle) as tar:
Dvexpress.py18 import tarfile
347 with tarfile.open(bundle) as tar:
360 if not tarfile.is_tarfile(bundle):
362 with tarfile.open(bundle) as tar:
/external/python/cpython2/Doc/library/
Dtarfile.rst1 :mod:`tarfile` --- Read and write tar archive files
4 .. module:: tarfile
13 **Source code:** :source:`Lib/tarfile.py`
17 The :mod:`tarfile` module makes it possible to read and write tar
45 allowed, see :ref:`tarfile-objects`.
81 For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, :func:`tarfile.open`
86 ``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`
124 better use :func:`tarfile.open` instead. See :ref:`tarfile-objects`.
129 Return :const:`True` if *name* is a tar archive file, that the :mod:`tarfile`
156 Base class for all :mod:`tarfile` exceptions.
[all …]
Darchiving.rst19 tarfile.rst
/external/r8/tools/
Dupload_to_x20.py15 import tarfile
25 with tarfile.open(tarname, 'w:gz') as tar:
Ddownload_from_x20.py14 import tarfile
31 with tarfile.open(filename, 'r:gz') as tar:
/external/autotest/client/profilers/pgo/
Dpgo.py17 import tarfile
42 tar = tarfile.open(name=os.path.join(test.profdir, 'pgo.tar.bz2'),
/external/autotest/client/site_tests/platform_DebugDaemonDumpDebugLogs/
Dplatform_DebugDaemonDumpDebugLogs.py8 import tarfile
29 with tarfile.open(tmp_file, mode) as tar_file:
/external/boringssl/src/util/bot/
Dupdate_clang.py18 import tarfile
62 with tarfile.open(temp.name, "r:gz") as tar_file:
Dextract.py22 import tarfile
71 with tarfile.open(path, 'r:' + compression) as tar_file:
/external/jsoncpp/scons-tools/
Dtargz.py21 import tarfile
45 tar = tarfile.TarFile(os.path.splitext(target_path)[0], 'w', fileobj)
/external/v8/tools/clang/scripts/
Dpackage.py16 import tarfile
276 with tarfile.open(pdir + '.tgz', 'w:gz') as tar:
288 with tarfile.open(golddir + '.tgz', 'w:gz') as tar:
299 with tarfile.open(objdumpdir + '.tgz', 'w:gz') as tar:
/external/autotest/tko/parsers/test/
Dscenario_base.py5 import ConfigParser, os, shelve, shutil, sys, tarfile, time
313 tgz = tarfile.open(tgz_filepath, 'w:gz')
334 tgz = tarfile.open(tgz_filepath, 'r:gz')
/external/python/cpython2/Lib/distutils/
Darchive_util.py84 import tarfile # late import so Python build itself doesn't break
101 tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
/external/python/cpython2/Lib/distutils/tests/
Dtest_sdist.py3 import tarfile
339 archive = tarfile.open(archive_name)
357 archive = tarfile.open(archive_name)
492 archive = tarfile.open(archive_name)
Dtest_archive_util.py8 import tarfile
97 tar = tarfile.open(path)
275 archive = tarfile.open(archive_name)
/external/boringssl/src/util/bot/go/
Dbootstrap.py24 import tarfile
134 with tarfile.open(pkg_path, 'r:gz') as f:
/external/deqp/external/
Dfetch_sources.py26 import tarfile
121 archive = tarfile.open(srcPath)
/external/python/cpython2/Tools/ssl/
Dtest_multiple_versions.py27 import tarfile
141 tf = tarfile.open(self.src_file)
/external/python/cpython2/Doc/tools/
Dsusp-ignored.csv119 library/tarfile,,:compression,filemode[:compression]
120 library/tarfile,,:gz,
121 library/tarfile,,:bz2,

12