(self)
| 204 | yield line |
| 205 | |
| 206 | def read(self): |
| 207 | with bz2.open( |
| 208 | self.path, |
| 209 | mode=self.mode, |
| 210 | compresslevel=self.compresslevel, |
| 211 | encoding=self.encoding, |
| 212 | errors=self.errors, |
| 213 | newline=self.newline, |
| 214 | ) as file_content: |
| 215 | return file_content.read() |
| 216 | |
| 217 | |
| 218 | class XZFile(CompressedFile): |