#NEWLINE# def limit_representation( self , rep ) : #NEWLINE# #INDENT# 'This only converts if true representation is higher' #NEWLINE# if ( ( rep is True ) or ( rep is False ) ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# other = copy ( self ) #NEWLINE# if other . fg : #NEWLINE# #INDENT# other . fg = other . fg . limit_representation ( rep ) #NEWLINE# #UNINDENT# if other . bg : #NEWLINE# #INDENT# other . bg = other . bg . limit_representation ( rep ) #NEWLINE# #UNINDENT# return other