Return any data available in the cooked queue (very lazy). Raise EOFError if connection closed and no data available. Return b'' if no cooked data available otherwise. Don't block.
(self)
| 396 | return self.read_very_lazy() |
| 397 | |
| 398 | def read_very_lazy(self): |
| 399 | """Return any data available in the cooked queue (very lazy). |
| 400 | |
| 401 | Raise EOFError if connection closed and no data available. |
| 402 | Return b'' if no cooked data available otherwise. Don't block. |
| 403 | |
| 404 | """ |
| 405 | buf = self.cookedq |
| 406 | self.cookedq = b'' |
| 407 | if not buf and self.eof and not self.rawq: |
| 408 | raise EOFError('telnet connection closed') |
| 409 | return buf |
| 410 | |
| 411 | def read_sb_data(self): |
| 412 | """Return any data available in the SB ... SE queue. |
no outgoing calls
no test coverage detected