Home
last modified time | relevance | path

Searched refs:GzipFile (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_gzip.py35 with gzip.GzipFile(self.filename, 'w'+mode) as f:
38 with gzip.GzipFile(self.filename, 'r'+mode) as f:
49 with gzip.GzipFile(unicode_filename, "wb") as f:
51 with gzip.GzipFile(unicode_filename, "rb") as f:
55 gzip.GzipFile(fileobj=fobj, mode="rb") as f:
59 with gzip.GzipFile(self.filename, 'wb') as f:
82 with gzip.GzipFile(self.filename, 'wb') as f:
88 with gzip.GzipFile(self.filename, 'rb') as f:
94 with gzip.GzipFile(self.filename, 'r') as f:
101 with gzip.GzipFile(self.filename, 'rU') as f:
[all …]
Dtest_tarfile.py19 gzip.GzipFile
275 _open = gzip.GzipFile
375 _open = gzip.GzipFile
1165 with gzip.GzipFile(tmpname) as fobj:
/external/python/cpython2/Doc/library/
Dgzip.rst16 The :mod:`gzip` module provides the :class:`GzipFile` class which is modeled
17 after Python's File Object. The :class:`GzipFile` class reads and writes
28 .. class:: GzipFile([filename[, mode[, compresslevel[, fileobj[, mtime]]]]])
30 Constructor for the :class:`GzipFile` class, which simulates most of the methods
66 Calling a :class:`GzipFile` object's :meth:`close` method does not close
72 :class:`GzipFile` supports iteration and the :keyword:`with` statement.
86 This is a shorthand for ``GzipFile(filename,`` ``mode,`` ``compresslevel)``.
Dtarfile.rst461 modifying. This is the case for objects such as :class:`~gzip.GzipFile`.
/external/python/cpython2/Lib/
Dgzip.py34 return GzipFile(filename, mode, compresslevel)
36 class GzipFile(io.BufferedIOBase): class
501 f = GzipFile(filename="", mode="rb", fileobj=sys.stdin)
512 g = GzipFile(filename="", mode="wb", fileobj=sys.stdout)
Dxmlrpclib.py1164 gzf = gzip.GzipFile(mode="wb", fileobj=f, compresslevel=1)
1191 gzf = gzip.GzipFile(mode="rb", fileobj=f)
1212 class GzipDecodedResponse(gzip.GzipFile if gzip else object):
1222 gzip.GzipFile.__init__(self, mode="rb", fileobj=self.stringio)
1226 gzip.GzipFile.close(self)
Dtarfile.py1735 gzip.GzipFile
1740 fileobj = gzip.GzipFile(name, mode, compresslevel, fileobj)
/external/jsoncpp/scons-tools/
Dtargz.py44 fileobj = gzip.GzipFile( target_path, 'wb', compression )
/external/autotest/client/site_tests/platform_DebugDaemonGetPerfData/
Dplatform_DebugDaemonGetPerfData.py54 gzip_file = gzip.GzipFile(fileobj=string_file, mode='wb')
/external/chromium-trace/catapult/systrace/systrace/
Doutput_generator.py180 with gzip.GzipFile(fileobj=compressed_trace, mode='w') as f:
/external/webrtc/third_party/gtest-parallel/
Dgtest-parallel200 with gzip.GzipFile(save_file, "rb") as f:
232 with gzip.GzipFile("", "wb", 9, f) as gzf:
/external/mesa3d/src/gallium/tools/trace/
Dparse.py380 from gzip import GzipFile
381 stream = GzipFile(arg, 'rt')
/external/python/cpython2/Misc/
DNEWS1267 GzipFile corruption. Original patch by Wolfgang Maier.
1599 - Issue #13664: GzipFile now supports non-ascii Unicode filenames.
3579 - Issue #5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile().
4367 - Issue #13781: Prevent gzip.GzipFile from using the dummy filename provided by
5591 - Issue #9759: GzipFile now raises ValueError when an operation is attempted
7032 - Issue #2846: Add support for gzip.GzipFile reading zero-padded files. Patch
7164 - Issue #7471: Improve the performance of GzipFile's buffering mechanism, and
8557 - Issue #3860: GzipFile and BZ2File now support the context management protocol.
8559 - Issue #4272: Add an optional argument to the GzipFile constructor to override
9809 GzipFile.close() can now be called multiple times without raising
[all …]
DHISTORY2832 - gzip.GzipFile has a new fileno() method, to retrieve the handle of the
2834 needed if you want to use os.fsync() on a GzipFile.
10057 allow using the 'a' flag as a mode for opening a GzipFile. gzip
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1272 * The :mod:`gzip` module's :class:`~gzip.GzipFile` now supports the context
1273 management protocol, so you can write ``with gzip.GzipFile(...) as f:``