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