MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / getincrementalencoder

Function getincrementalencoder

tools/python-3.11.9-amd64/Lib/codecs.py:990–1002  ·  view source on GitHub ↗

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

(encoding)

Source from the content-addressed store, hash-verified

988 return lookup(encoding).decode
989
990def getincrementalencoder(encoding):
991
992 """ Lookup up the codec for the given encoding and return
993 its IncrementalEncoder class or factory function.
994
995 Raises a LookupError in case the encoding cannot be found
996 or the codecs doesn't provide an incremental encoder.
997
998 """
999 encoder = lookup(encoding).incrementalencoder
1000 if encoder is None:
1001 raise LookupError(encoding)
1002 return encoder
1003
1004def getincrementaldecoder(encoding):
1005

Callers 1

iterencodeFunction · 0.85

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected