MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / truncate

Method truncate

Lib/StringIO.py:187–206  ·  view source on GitHub ↗

Truncate the file's size. If the optional size argument is present, the file is truncated to (at most) that size. The size defaults to the current position. The current file position is not changed unless the position is beyond the new file size. If the spec

(self, size=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testFunction · 0.95

Calls 2

getvalueMethod · 0.95
_complain_ifclosedFunction · 0.85

Tested by

no test coverage detected