Truncate file to size bytes. Size defaults to the current IO position as reported by tell(). Return the new size.
(self, pos=None)
| 390 | return self.seek(0, 1) |
| 391 | |
| 392 | def truncate(self, pos=None): |
| 393 | """Truncate file to size bytes. |
| 394 | |
| 395 | Size defaults to the current IO position as reported by tell(). Return |
| 396 | the new size. |
| 397 | """ |
| 398 | self._unsupported("truncate") |
| 399 | |
| 400 | ### Flush and close ### |
| 401 |
no test coverage detected