codecs.getreader()

codecs.getreader(encoding)[source]

Lookup up the codec for the given encoding and return its StreamReader class or factory function.

Raises a LookupError in case the encoding cannot be found.