Read at least one byte of cooked data unless EOF is hit. Return b'' if EOF is hit. Block if no data is immediately available.
(self)
| 342 | return buf |
| 343 | |
| 344 | def read_some(self): |
| 345 | """Read at least one byte of cooked data unless EOF is hit. |
| 346 | |
| 347 | Return b'' if EOF is hit. Block if no data is immediately |
| 348 | available. |
| 349 | |
| 350 | """ |
| 351 | self.process_rawq() |
| 352 | while not self.cookedq and not self.eof: |
| 353 | self.fill_rawq() |
| 354 | self.process_rawq() |
| 355 | buf = self.cookedq |
| 356 | self.cookedq = b'' |
| 357 | return buf |
| 358 | |
| 359 | def read_very_eager(self): |
| 360 | """Read everything that's possible without blocking in I/O (eager). |
nothing calls this directly
no test coverage detected