Home | History | Annotate | Download | only in Lib

Lines Matching full:truncate

347     def truncate(self, pos=None):
348 """Truncate file to size bytes.
353 self._unsupported("truncate")
395 If False, seek(), tell() and truncate() will raise OSError.
424 If False, write() and truncate() will raise OSError.
753 def truncate(self, pos=None):
762 # XXX directly to truncate?
763 return self.raw.truncate(pos)
928 def truncate(self, pos=None):
930 raise ValueError("truncate on closed file")
939 raise ValueError("negative truncate position %r" % (pos,))
1204 def truncate(self, pos=None):
1209 return self.raw.truncate(pos)
1353 def truncate(self, pos=None):
1357 return BufferedWriter.truncate(self, pos)
1644 def truncate(self, size=None):
1645 """Truncate the file to at most size bytes.
1752 def truncate(self, pos=None):
1753 """Truncate size to pos, where pos is an int."""
1754 self._unsupported("truncate")
2267 def truncate(self, pos=None):
2271 return self.buffer.truncate(pos)