def flush(self):
self._write_all(self._wbuffer.getvalue())<EOL>self._wbuffer = StringIO()<EOL>return<EOL>
Write out any data in the write buffer.  This may do nothing if write
buffering is not turned on.