#NEWLINE# def truncate( self , pos = None ) : #NEWLINE# #INDENT# self . flush ( ) #NEWLINE# if ( pos is None ) : #NEWLINE# #INDENT# pos = self . tell ( ) #NEWLINE# #UNINDENT# return self . buffer . truncate ( pos )