#NEWLINE# def format( self , tokensource , outfile ) : #NEWLINE# #INDENT# if ( ( not self . encoding ) and hasattr ( outfile , 'encoding' ) and hasattr ( outfile , 'isatty' ) and outfile . isatty ( ) and ( sys . version_info < ( 3 , ) ) ) : #NEWLINE# #INDENT# self . encoding = outfile . encoding #NEWLINE# #UNINDENT# return Formatter . format ( self , outfile , outfile )