(self)
| 65 | yield line |
| 66 | |
| 67 | def read(self): |
| 68 | # pylint: disable=no-member |
| 69 | with builtins.open( |
| 70 | self.path, |
| 71 | mode=self.mode, |
| 72 | buffering=self.buffering, |
| 73 | encoding=self.encoding, |
| 74 | errors=self.errors, |
| 75 | newline=self.newline, |
| 76 | ) as file_content: |
| 77 | return file_content.read() |
| 78 | |
| 79 | |
| 80 | class CompressedFile(ReusableFile): |