(splitted_match, colored, color=RED_CHARACTER)
Output a match on the console
Output a match on the console
Output a match on the console
def print_match(splitted_match, colored, color=RED_CHARACTER):
    ''' Output a match on the console '''
    if colored:
        a, b, c = splitted_match
        colored_output = (a, color, b, NO_COLOR, c)
    else:
        colored_output = splitted_match

    print(''.join(colored_output))
def print_match ( splitted_match , colored , color = RED_CHARACTER ) : if colored : a , b , c = splitted_match colored_output = ( a , color , b , NO_COLOR , c ) else : colored_output = splitted_match print ( '' . join ( colored_output ) )