mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +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
|
@ -221,10 +221,6 @@ class LZMAFile(_compression.BaseStream):
|
|||
self._check_can_read()
|
||||
return self._buffer.readline(size)
|
||||
|
||||
def __iter__(self):
|
||||
self._check_can_read()
|
||||
return self._buffer.__iter__()
|
||||
|
||||
def write(self, data):
|
||||
"""Write a bytes object to the file.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue