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

Function getencoder

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

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

(encoding)

Source from the content-addressed store, hash-verified

968### Helpers for codec lookup
969
970def getencoder(encoding):
971
972 """ Lookup up the codec for the given encoding and return
973 its encoder function.
974
975 Raises a LookupError in case the encoding cannot be found.
976
977 """
978 return lookup(encoding).encode
979
980def getdecoder(encoding):
981

Callers

nothing calls this directly

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected