Truncate file to size bytes. Size defaults to the current IO position as reported by tell(). Return the new size.
(self, pos=None)
| 365 | return self.seek(0, 1) |
| 366 | |
| 367 | def truncate(self, pos=None): |
| 368 | """Truncate file to size bytes. |
| 369 | |
| 370 | Size defaults to the current IO position as reported by tell(). Return |
| 371 | the new size. |
| 372 | """ |
| 373 | self._unsupported("truncate") |
| 374 | |
| 375 | ### Flush and close ### |
| 376 |
no test coverage detected