MCPcopy Index your code
hub / github.com/RustPython/RustPython / truncate

Method truncate

Lib/_pyio.py:2474–2478  ·  view source on GitHub ↗
(self, pos=None)

Source from the content-addressed store, hash-verified

2472 decoder.setstate(saved_state)
2473
2474 def truncate(self, pos=None):
2475 self.flush()
2476 if pos is None:
2477 pos = self.tell()
2478 return self.buffer.truncate(pos)
2479
2480 def detach(self):
2481 if self.buffer is None:

Callers

nothing calls this directly

Calls 3

flushMethod · 0.95
tellMethod · 0.95
truncateMethod · 0.45

Tested by

no test coverage detected