encodings.idna.StreamReader

class encodings.idna.StreamReader(stream, errors='strict')[source]

Methods

__enter__()
__exit__(type, value, tb)
__getattr__(name[, getattr]) Inherit all other methods from the underlying stream.
__init__(stream[, errors]) Creates a StreamReader instance.
__iter__()
decode(input[, errors])
encode(input[, errors])
next() Return the next decoded line from the input stream.
read([size, chars, firstline]) Decodes data from the stream self.stream and returns the resulting object.
readline([size, keepends]) Read one line from the input stream and return the decoded data.
readlines([sizehint, keepends]) Read all lines available on the input stream and return them as list of lines.
reset() Resets the codec buffers used for keeping state.
seek(offset[, whence]) Set the input stream’s current position.