Lines Matching refs:GzipFile

60         with gzip.GzipFile(self.filename, 'w'+mode) as f:
63 with gzip.GzipFile(self.filename, 'r'+mode) as f:
67 with gzip.GzipFile(self.filename, 'wb') as f:
82 with gzip.GzipFile(filename, 'w') as f:
85 with gzip.GzipFile(filename, 'a') as f:
87 with gzip.GzipFile(filename) as f:
111 with gzip.GzipFile(self.filename, 'wb') as f:
117 with gzip.GzipFile(self.filename, 'rb') as f:
123 with gzip.GzipFile(self.filename, 'r') as f:
131 with gzip.GzipFile(self.filename, 'r') as f:
147 f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb')
151 # Test that I/O operations on closed GzipFile objects raise a
156 f = gzip.GzipFile(self.filename, 'r')
168 f = gzip.GzipFile(self.filename, 'w')
181 with gzip.GzipFile(self.filename, 'ab') as f:
184 with gzip.GzipFile(self.filename, 'rb') as f:
192 with gzip.GzipFile(self.filename, 'wb', 9) as f:
195 with gzip.GzipFile(self.filename, "ab", 9) as f: # append
199 with gzip.GzipFile(self.filename, "rb") as zgfile:
208 with gzip.GzipFile(self.filename, 'xb') as f:
210 with gzip.GzipFile(self.filename, 'rb') as f:
213 gzip.GzipFile(self.filename, 'xb')
216 # Issue #7471: a GzipFile can be wrapped in a BufferedReader for
220 with gzip.GzipFile(self.filename, 'rb') as f:
230 with gzip.GzipFile(self.filename, 'rb') as f:
242 with gzip.GzipFile(self.filename, 'rb') as f:
245 with gzip.GzipFile(self.filename, 'rb') as f:
254 with gzip.GzipFile(self.filename) as f:
273 with gzip.GzipFile(self.filename) as f:
281 with gzip.GzipFile(self.filename, 'w') as f:
288 with gzip.GzipFile(self.filename, 'r') as f:
291 with gzip.GzipFile(self.filename, 'x') as f:
296 with gzip.GzipFile(self.filename, mode) as f:
302 with gzip.GzipFile(self.filename, 'rb') as f:
308 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
310 with gzip.GzipFile(self.filename) as fRead:
320 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
384 fWrite = gzip.GzipFile(self.filename, 'w', compresslevel=level)
393 # GzipFile supports the context management protocol
394 with gzip.GzipFile(self.filename, "wb") as f:
396 f = gzip.GzipFile(self.filename, "rb")
406 with gzip.GzipFile(self.filename, "wb") as f:
414 with gzip.GzipFile(self.filename, "wb") as f:
421 with gzip.GzipFile(self.filename, "rb") as f:
431 with gzip.GzipFile(self.filename, 'r') as file:
437 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
441 with gzip.GzipFile(fileobj=buf, mode="rb") as f:
446 with gzip.GzipFile(self.filename, "wb") as f:
454 with gzip.GzipFile(self.filename, "rb") as f:
467 # Issue #10791: TextIOWrapper.readlines() fails when wrapping GzipFile.
470 with gzip.GzipFile(self.filename, 'r') as f:
475 # Issue #13781: Opening a GzipFile for writing fails when using a
479 with gzip.GzipFile(fileobj=f, mode="w") as g:
483 gzip.GzipFile(self.filename, "wb").close()
485 with gzip.GzipFile(fileobj=f, mode='r') as g:
487 with gzip.GzipFile(fileobj=f, mode='w') as g:
489 with gzip.GzipFile(fileobj=f, mode='a') as g:
491 with gzip.GzipFile(fileobj=f, mode='x') as g:
494 gzip.GzipFile(fileobj=f, mode='z')
497 with gzip.GzipFile(fileobj=f) as g:
504 g = gzip.GzipFile(fileobj=f)
514 with gzip.GzipFile(bytes_filename, "wb") as f:
516 with gzip.GzipFile(bytes_filename, "rb") as f:
519 with gzip.GzipFile(str_filename, "rb") as f:
528 decomp = gzip.GzipFile(fileobj=bomb)
541 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f:
551 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f:
567 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
586 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
588 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
593 with gzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f:
601 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f:
615 with gzip.GzipFile(fileobj=io.BytesIO(), mode='w') as f:
775 with gzip.GzipFile(fileobj=bytes_io, mode='wb') as gzip_file: