(self)
| 154 | yield line |
| 155 | |
| 156 | def read(self): |
| 157 | with gzip.GzipFile(self.path, compresslevel=self.compresslevel) as gz_file: |
| 158 | gz_file.read1 = gz_file.read |
| 159 | with io.TextIOWrapper( |
| 160 | gz_file, |
| 161 | encoding=self.encoding, |
| 162 | errors=self.errors, |
| 163 | newline=self.newline, |
| 164 | ) as file_content: |
| 165 | return file_content.read() |
| 166 | |
| 167 | |
| 168 | class BZ2File(CompressedFile): |
no outgoing calls
no test coverage detected