MCPcopy Index your code
hub / github.com/python/cpython / 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)

Calls

no outgoing calls

Tested by

no test coverage detected