(self, tokensource, outfile)
return self.format_unencoded(tokensource, outfile)
Format ``tokensource``, an iterable of ``(tokentype, tokenstring)``
        tuples and write it into ``outfile``.
Format ``tokensource``, an iterable of ``(tokentype, tokenstring)``
        tuples and write it into ``outfile``.
Format tokensource an iterable of ( tokentype tokenstring ) tuples and write it into outfile .
def format(self, tokensource, outfile):
        """
        Format ``tokensource``, an iterable of ``(tokentype, tokenstring)``
        tuples and write it into ``outfile``.
        """
        if self.encoding:
            # wrap the outfile in a StreamWriter
            outfile = codecs.lookup(self.encoding)[3](outfile)
        return self.format_unencoded(tokensource, outfile)
def format ( self , tokensource , outfile ) : if self . encoding : # wrap the outfile in a StreamWriter outfile = codecs . lookup ( self . encoding ) [ 3 ] ( outfile ) return self . format_unencoded ( tokensource , outfile )