(self, pos=None)
| 1289 | return written |
| 1290 | |
| 1291 | def truncate(self, pos=None): |
| 1292 | with self._write_lock: |
| 1293 | self._flush_unlocked() |
| 1294 | if pos is None: |
| 1295 | pos = self.raw.tell() |
| 1296 | return self.raw.truncate(pos) |
| 1297 | |
| 1298 | def flush(self): |
| 1299 | with self._write_lock: |
nothing calls this directly
no test coverage detected