Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams.
(self)
| 149 | self._node = None |
| 150 | |
| 151 | def flush(self): |
| 152 | """Flush write buffers, if applicable. |
| 153 | |
| 154 | This is not implemented for read-only and non-blocking streams. |
| 155 | |
| 156 | """ |
| 157 | self._check_closed() |
| 158 | self._node.flush() |
| 159 | |
| 160 | # def truncate(self, pos: int = None) -> int: |
| 161 | def truncate(self, pos=None): |