class documentation

class _CompatIO(object):

View In Hierarchy

Stream that lazy-allocates its buffer based on the first write's type

This is a wrapper around BytesIO/StringIO that will allocate the respective internal buffer based on whether the first write is bytes or not. It is intended to be used with PycURL, which returns the response as bytes in Python 3 and string in Python 2.

Method __init__ Undocumented
Method read Undocumented
Method seek Undocumented
Method tell Undocumented
Method write Undocumented
Instance Variable buffer Undocumented
def __init__(self):

Undocumented

def read(self, *args, **kwargs):

Undocumented

def seek(self, *args, **kwargs):

Undocumented

def tell(self):

Undocumented

def write(self, data, *args, **kwargs):

Undocumented

buffer =

Undocumented