summaryrefslogtreecommitdiffstats
path: root/Lib/bz2.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2021-10-19 02:51:48 (GMT)
committerGitHub <noreply@github.com>2021-10-19 02:51:48 (GMT)
commit0a4c82ddd34a3578684b45b76f49cd289a08740b (patch)
tree0eb1d0c76d12a62838552a4be7d62306747a0815 /Lib/bz2.py
parentc0295675305f6896e4ba7496441cc470d7edca89 (diff)
downloadcpython-0a4c82ddd34a3578684b45b76f49cd289a08740b.zip
cpython-0a4c82ddd34a3578684b45b76f49cd289a08740b.tar.gz
cpython-0a4c82ddd34a3578684b45b76f49cd289a08740b.tar.bz2
bpo-45475: Revert `__iter__` optimization for GzipFile, BZ2File, and LZMAFile. (GH-29016)
This reverts commit d2a8e69c2c605fbaa3656a5f99aa8d295f74c80e.
Diffstat (limited to 'Lib/bz2.py')
-rw-r--r--Lib/bz2.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/bz2.py b/Lib/bz2.py
index 7f1d206..fabe4f7 100644
--- a/Lib/bz2.py
+++ b/Lib/bz2.py
@@ -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.