diff options
Diffstat (limited to 'Lib/lzma.py')
-rw-r--r-- | Lib/lzma.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/lzma.py b/Lib/lzma.py index c8b197055c..2ada7d81d3 100644 --- a/Lib/lzma.py +++ b/Lib/lzma.py @@ -221,6 +221,10 @@ 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. |