io.StringIO.flush

StringIO.flush()

Flush write buffers, if applicable.

This is not implemented for read-only and non-blocking streams.