PyDocs

Nav

Generic Operating System Services

IncrementalNewlineDecoder

io

class
  • IncrementalNewlineDecoder(decoder, translate, errors='strict')
Codec used when reading a file in universal newlines mode.

It wraps another incremental decoder, translating \r\n and \r into \n.
It also records the types of newlines encountered.  When used with
translate=False, it ensures that the newline sequence is returned in
one piece. When used with decoder=None, it expects unicode strings as
decode input and translates newlines without first invoking an external
decoder.
0 Examples
No examples for io/IncrementalNewlineDecoder.
See Also
No see-alsos for io/IncrementalNewlineDecoder
0 Notes
No notes for IncrementalNewlineDecoder