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

Method getreader

Lib/test/test_codecs.py:160–162  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

158
159 def test_readline(self):
160 def getreader(input):
161 stream = io.BytesIO(input.encode(self.encoding))
162 return codecs.getreader(self.encoding)(stream)
163
164 def readalllines(input, keepends=True, size=None):
165 reader = getreader(input)

Callers 15

test_streamwriterMethod · 0.80
check_partialMethod · 0.80
test_bug1175396Method · 0.80
test_readlinequeueMethod · 0.80
test_bug1098990_aMethod · 0.80
test_bug1098990_bMethod · 0.80
test_badbomMethod · 0.80
test_badbomMethod · 0.80
test_stream_bomMethod · 0.80
test_stream_bareMethod · 0.80
test_streamMethod · 0.80

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected