MCPcopy Index your code
hub / github.com/python/cpython / _is_textIO

Method _is_textIO

Lib/http/client.py:853–856  ·  view source on GitHub ↗

Test whether a file-like object is a text or a binary stream.

(stream)

Source from the content-addressed store, hash-verified

851
852 @staticmethod
853 def _is_textIO(stream):
854 """Test whether a file-like object is a text or a binary stream.
855 """
856 return isinstance(stream, io.TextIOBase)
857
858 @staticmethod
859 def _get_content_length(body, method):

Callers 2

sendMethod · 0.95
_read_readableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected