class codecs.StreamReader(stream, errors='strict')
Constructor for a StreamReader instance.
All stream readers must provide this constructor interface. They are free to add additional keyword arguments, but only the ones defined here are used by the Python codec registry.
The stream argument must be a file-like object open for reading text or binary data, as appropriate for the specific codec.
The StreamReader may implement different error handling schemes by providing the errors keyword arg