#NEWLINE# def to_representation( self , rep ) : #NEWLINE# #INDENT# 'This converts both colors to a specific representation' #NEWLINE# other = copy ( self ) #NEWLINE# if other . fg : #NEWLINE# #INDENT# other . fg = other . fg . to_representation ( rep ) #NEWLINE# #UNINDENT# if other . bg : #NEWLINE# #INDENT# other . bg = other . bg . to_representation ( rep ) #NEWLINE# #UNINDENT# return other