(self, buf)
| 265 | self.current_frame = None |
| 266 | |
| 267 | def readinto(self, buf): |
| 268 | if self.current_frame: |
| 269 | n = self.current_frame.readinto(buf) |
| 270 | if n == 0 and len(buf) != 0: |
| 271 | self.current_frame = None |
| 272 | n = len(buf) |
| 273 | buf[:] = self.file_read(n) |
| 274 | return n |
| 275 | if n < len(buf): |
| 276 | raise UnpicklingError( |
| 277 | "pickle exhausted before end of frame") |
| 278 | return n |
| 279 | else: |
| 280 | n = len(buf) |
| 281 | buf[:] = self.file_read(n) |
| 282 | return n |
| 283 | |
| 284 | def read(self, n): |
| 285 | if self.current_frame: |
no test coverage detected