Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams.
(self)
| 375 | ### Flush and close ### |
| 376 | |
| 377 | def flush(self): |
| 378 | """Flush write buffers, if applicable. |
| 379 | |
| 380 | This is not implemented for read-only and non-blocking streams. |
| 381 | """ |
| 382 | self._checkClosed() |
| 383 | # XXX Should this return the number of bytes written??? |
| 384 | |
| 385 | __closed = False |
| 386 |