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

Function getwriter

Lib/codecs.py:1033–1041  ·  view source on GitHub ↗

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

(encoding)

Source from the content-addressed store, hash-verified

1031 return lookup(encoding).streamreader
1032
1033def getwriter(encoding):
1034
1035 """ Lookup up the codec for the given encoding and return
1036 its StreamWriter class or factory function.
1037
1038 Raises a LookupError in case the encoding cannot be found.
1039
1040 """
1041 return lookup(encoding).streamwriter
1042
1043def iterencode(iterator, encoding, errors='strict', **kwargs):
1044 """

Callers

nothing calls this directly

Calls 1

lookupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…