MCPcopy Index your code
hub / github.com/RustPython/RustPython / _read_readable

Method _read_readable

Lib/http/client.py:1093–1102  ·  view source on GitHub ↗
(self, readable)

Source from the content-addressed store, hash-verified

1091 self._buffer.append(s)
1092
1093 def _read_readable(self, readable):
1094 if self.debuglevel > 0:
1095 print("reading a readable")
1096 encode = self._is_textIO(readable)
1097 if encode and self.debuglevel > 0:
1098 print("encoding file using iso-8859-1")
1099 while datablock := readable.read(self.blocksize):
1100 if encode:
1101 datablock = datablock.encode("iso-8859-1")
1102 yield datablock
1103
1104 def _send_output(self, message_body=None, encode_chunked=False):
1105 """Send the currently buffered request and clear the buffer.

Callers 1

_send_outputMethod · 0.95

Calls 4

_is_textIOMethod · 0.95
printFunction · 0.50
readMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected