(self)
| 291 | return self.file_read(n) |
| 292 | |
| 293 | def readline(self): |
| 294 | if self.current_frame: |
| 295 | data = self.current_frame.readline() |
| 296 | if not data: |
| 297 | self.current_frame = None |
| 298 | return self.file_readline() |
| 299 | if data[-1] != b'\n'[0]: |
| 300 | raise UnpicklingError( |
| 301 | "pickle exhausted before end of frame") |
| 302 | return data |
| 303 | else: |
| 304 | return self.file_readline() |
| 305 | |
| 306 | def load_frame(self, frame_size): |
| 307 | if self.current_frame and self.current_frame.read() != b'': |
no test coverage detected