Function
codecs.getwriter

Signature

getwriter(encoding)

Documentation String

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.