MCPcopy Index your code
hub / github.com/python/cpython / readline

Method readline

Lib/test/test_httplib.py:114–118  ·  view source on GitHub ↗
(self, length=None)

Source from the content-addressed store, hash-verified

112 return data
113
114 def readline(self, length=None):
115 data = io.BytesIO.readline(self, length)
116 if data == b'':
117 raise AssertionError('caller tried to read past EOF')
118 return data
119
120class FakeSocketHTTPConnection(client.HTTPConnection):
121 """HTTPConnection subclass using FakeSocket; counts connect() calls"""

Callers

nothing calls this directly

Calls 1

readlineMethod · 0.45

Tested by

no test coverage detected