def truncate(self, *args):
    """ Truncate the file at the current position and set the dirty flag. """
    if self.buf.tell() > len(self):
      self.dirty = True
    return self.buf.truncate(*args)
dataset/ETHPy150Open xolox/dedupfs/dedupfs.py/Buffer.truncate/swapped operands of `>`