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

Function getincrementaldecoder

Lib/codecs.py:1009–1021  ·  view source on GitHub ↗

Lookup up the codec for the given encoding and return its IncrementalDecoder class or factory function. Raises a LookupError in case the encoding cannot be found or the codecs doesn't provide an incremental decoder.

(encoding)

Source from the content-addressed store, hash-verified

1007 return encoder
1008
1009def getincrementaldecoder(encoding):
1010
1011 """ Lookup up the codec for the given encoding and return
1012 its IncrementalDecoder class or factory function.
1013
1014 Raises a LookupError in case the encoding cannot be found
1015 or the codecs doesn't provide an incremental decoder.
1016
1017 """
1018 decoder = lookup(encoding).incrementaldecoder
1019 if decoder is None:
1020 raise LookupError(encoding)
1021 return decoder
1022
1023def getreader(encoding):
1024

Callers 1

iterdecodeFunction · 0.70

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected