Lines Matching full:truncate
326 def truncate(self, pos=None):
327 """Truncate file to size bytes.
332 self._unsupported("truncate")
374 If False, seek(), tell() and truncate() will raise IOError.
404 If False, write() and truncate() will raise IOError.
712 def truncate(self, pos=None):
721 # XXX directly to truncate?
722 return self.raw.truncate(pos)
879 def truncate(self, pos=None):
881 raise ValueError("truncate on closed file")
890 raise ValueError("negative truncate position %r" % (pos,))
1115 def truncate(self, pos=None):
1120 return self.raw.truncate(pos)
1272 def truncate(self, pos=None):
1276 return BufferedWriter.truncate(self, pos)
1326 def truncate(self, pos=None):
1327 """Truncate size to pos."""
1328 self._unsupported("truncate")
1777 def truncate(self, pos=None):
1781 return self.buffer.truncate(pos)