Lines Matching refs:GzipFile
14 __all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]
36 For binary mode, this function is equivalent to the GzipFile constructor:
37 GzipFile(filename, mode, compresslevel). In this case, the encoding, errors
40 For text mode, a GzipFile object is created, and wrapped in an
58 binary_file = GzipFile(filename, gz_mode, compresslevel)
60 binary_file = GzipFile(None, gz_mode, compresslevel, filename)
121 class GzipFile(_compression.BaseStream):
122 """The GzipFile class simulates most of the methods of a file object with
136 """Constructor for the GzipFile class.
195 "GzipFile was opened for writing, but this will "
276 raise OSError(errno.EBADF, "write() on read-only GzipFile object")
279 raise ValueError("write() on closed GzipFile object")
300 raise OSError(errno.EBADF, "read() on write-only GzipFile object")
310 raise OSError(errno.EBADF, "read1() on write-only GzipFile object")
320 raise OSError(errno.EBADF, "peek() on write-only GzipFile object")
642 f = GzipFile(filename="", mode="rb", fileobj=sys.stdin.buffer)
652 g = GzipFile(filename="", mode="wb", fileobj=sys.stdout.buffer,