terminaltables icon indicating copy to clipboard operation
terminaltables copied to clipboard

Write bytes to underluing buffer of stdout

Open arcresu opened this issue 4 years ago • 0 comments

This was adapted from an example in the python docs and solves test failures seen on the CI. We need to write to the underlying buffer object of the stream, but in case sys.stdout was replaced with a file-like object without a buffer there's a fallback to direct writing.

arcresu avatar Nov 12 '19 03:11 arcresu