MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read_very_lazy

Method read_very_lazy

tools/python-3.11.9-amd64/Lib/telnetlib.py:398–409  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

read_untilMethod · 0.95
read_very_eagerMethod · 0.95
read_eagerMethod · 0.95
read_lazyMethod · 0.95
expectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected