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

Function getreader

Lib/codecs.py:1023–1031  ·  view source on GitHub ↗

Lookup up the codec for the given encoding and return its StreamReader class or factory function. Raises a LookupError in case the encoding cannot be found.

(encoding)

Source from the content-addressed store, hash-verified

1021 return decoder
1022
1023def getreader(encoding):
1024
1025 """ Lookup up the codec for the given encoding and return
1026 its StreamReader class or factory function.
1027
1028 Raises a LookupError in case the encoding cannot be found.
1029
1030 """
1031 return lookup(encoding).streamreader
1032
1033def getwriter(encoding):
1034

Callers 3

readalllinesMethod · 0.85
test_readlineMethod · 0.85

Calls 1

lookupFunction · 0.70

Tested by 3

readalllinesMethod · 0.68
test_readlineMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…