Home | History | Annotate | Download | only in python2.7

Lines Matching full:truncate

317     def truncate(self, pos=None):
318 """Truncate file to size bytes.
323 self._unsupported("truncate")
365 If False, seek(), tell() and truncate() will raise IOError.
395 If False, write() and truncate() will raise IOError.
705 def truncate(self, pos=None):
714 # XXX directly to truncate?
715 return self.raw.truncate(pos)
872 def truncate(self, pos=None):
874 raise ValueError("truncate on closed file")
883 raise ValueError("negative truncate position %r" % (pos,))
1108 def truncate(self, pos=None):
1113 return self.raw.truncate(pos)
1263 def truncate(self, pos=None):
1267 return BufferedWriter.truncate(self, pos)
1317 def truncate(self, pos=None):
1318 """Truncate size to pos."""
1319 self._unsupported("truncate")
1763 def truncate(self, pos=None):
1767 return self.buffer.truncate(pos)