Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e840f commit 2ac657dCopy full SHA for 2ac657d
1 file changed
Lib/gzip.py
@@ -338,6 +338,20 @@ def read1(self, size=-1):
338
size = io.DEFAULT_BUFFER_SIZE
339
return self._buffer.read1(size)
340
341
+ def readinto(self, b):
342
+ self._check_not_closed()
343
+ if self.mode != READ:
344
+ import errno
345
+ raise OSError(errno.EBADF, "readinto() on write-only GzipFile object")
346
+ return self._buffer.readinto(b)
347
+
348
+ def readinto1(self, b):
349
350
351
352
+ raise OSError(errno.EBADF, "readinto1() on write-only GzipFile object")
353
+ return self._buffer.readinto1(b)
354
355
def peek(self, n):
356
self._check_not_closed()
357
if self.mode != READ:
0 commit comments