mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-45475: Revert __iter__
optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)
This reverts commit d2a8e69c2c
.
This commit is contained in:
parent
c029567530
commit
0a4c82ddd3
4 changed files with 4 additions and 12 deletions
|
@ -398,10 +398,6 @@ class GzipFile(_compression.BaseStream):
|
|||
self._check_not_closed()
|
||||
return self._buffer.readline(size)
|
||||
|
||||
def __iter__(self):
|
||||
self._check_not_closed()
|
||||
return self._buffer.__iter__()
|
||||
|
||||
|
||||
def _read_exact(fp, n):
|
||||
'''Read exactly *n* bytes from `fp`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue