(stream)
return isinstance(stream, io.TextIOBase)
Test whether a file-like object is a text or a binary stream.
Test whether a file-like object is a text or a binary stream.
Test whether a file - like object is a text or a binary stream .
def _is_textIO(stream):
        """Test whether a file-like object is a text or a binary stream.
        """
        return isinstance(stream, io.TextIOBase)
def _is_textIO ( stream ) : return isinstance ( stream , io . TextIOBase )