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

Method read

Lib/test/test_httplib.py:108–112  ·  view source on GitHub ↗
(self, n=-1)

Source from the content-addressed store, hash-verified

106 more from the underlying file than it should.
107 """
108 def read(self, n=-1):
109 data = io.BytesIO.read(self, n)
110 if data == b'':
111 raise AssertionError('caller tried to read past EOF')
112 return data
113
114 def readline(self, length=None):
115 data = io.BytesIO.readline(self, length)

Callers 15

test_chunked_trailersMethod · 0.45
test_chunked_syncMethod · 0.45
run_serverMethod · 0.45
test_peekMethod · 0.45
test_reuse_reconnectMethod · 0.45
test_list_bodyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected