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

Method read_lazy

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

Process and return data that's already in the queues (lazy). Raise EOFError if connection closed and no data available. Return b'' if no cooked data available otherwise. Don't block unless in the midst of an IAC sequence.

(self)

Source from the content-addressed store, hash-verified

385 return self.read_very_lazy()
386
387 def read_lazy(self):
388 """Process and return data that's already in the queues (lazy).
389
390 Raise EOFError if connection closed and no data available.
391 Return b'' if no cooked data available otherwise. Don't block
392 unless in the midst of an IAC sequence.
393
394 """
395 self.process_rawq()
396 return self.read_very_lazy()
397
398 def read_very_lazy(self):
399 """Return any data available in the cooked queue (very lazy).

Callers

nothing calls this directly

Calls 2

process_rawqMethod · 0.95
read_very_lazyMethod · 0.95

Tested by

no test coverage detected