class TextIO(BytesIO):
Helper IO class.
Writes encode strings to bytes if needed, reads return bytes. This makes it easier to emulate files opened in binary mode without needing to explicitly convert strings to bytes in setting up the test data.
Method | __init__ |
Undocumented |
Method | write |
Undocumented |
Method | writelines |
Undocumented |