Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams.
(self)
| 400 | ### Flush and close ### |
| 401 | |
| 402 | def flush(self): |
| 403 | """Flush write buffers, if applicable. |
| 404 | |
| 405 | This is not implemented for read-only and non-blocking streams. |
| 406 | """ |
| 407 | self._checkClosed() |
| 408 | # XXX Should this return the number of bytes written??? |
| 409 | |
| 410 | __closed = False |
| 411 |