#NEWLINE# def _format_line( block , ranked , show_complexity = False ) : #NEWLINE# #INDENT# 'Format a single block as a line.\n\n    *ranked* is the rank given by the `~radon.complexity.rank` function. If\n    *show_complexity* is True, then the complexity score is added alongside.\n    ' #NEWLINE# letter_colored = ( LETTERS_COLORS [ block . letter ] + block . letter ) #NEWLINE# rank_colored = ( RANKS_COLORS [ ranked ] + ranked ) #NEWLINE# compl = ( '' if ( not show_complexity ) else ' ({0})' . format ( block . complexity ) ) #NEWLINE# return TEMPLATE . format ( BRIGHT , letter_colored , block . lineno , block . col_offset , block . fullname , rank_colored , compl , reset = RESET )