txaio._iotype

Functions

guess_stream_needs_encoding(fileobj[, default])

Guess the type (bytes/unicode) of this stream, and return whether or not it

Module Contents

guess_stream_needs_encoding(fileobj, default=True)[source]

Guess the type (bytes/unicode) of this stream, and return whether or not it requires text to be encoded before written into it.