def truncate(self, size=-1):
        if size < 0:
            size = self.__file.tell()
        self.__file.truncate(size)
Truncate the underlying file. Might fail.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/io/__init__.py/AutoFlush.truncate