txaio._iotype
=============

.. py:module:: txaio._iotype


Functions
---------

.. autoapisummary::

   txaio._iotype.guess_stream_needs_encoding


Module Contents
---------------

.. py:function:: guess_stream_needs_encoding(fileobj, default=True)

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


