diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-10-19 03:15:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 03:15:48 (GMT) |
commit | 97ce855ca8ce437070424b43f5b41158685ac140 (patch) | |
tree | f50637b60f2eb2499e94a414b5df55b0b28a19e4 /Lib/bz2.py | |
parent | b1949e0b58714724a3105cad3ad1b61384688da7 (diff) | |
download | cpython-97ce855ca8ce437070424b43f5b41158685ac140.zip cpython-97ce855ca8ce437070424b43f5b41158685ac140.tar.gz cpython-97ce855ca8ce437070424b43f5b41158685ac140.tar.bz2 |
bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)
This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e.
(cherry picked from commit 0a4c82ddd34a3578684b45b76f49cd289a08740b)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Lib/bz2.py')
-rw-r--r-- | Lib/bz2.py | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -197,10 +197,6 @@ class BZ2File(_compression.BaseStream): self._check_can_read() return self._buffer.readline(size) - def __iter__(self): - self._check_can_read() - return self._buffer.__iter__() - def readlines(self, size=-1): """Read a list of lines of uncompressed bytes from the file. |