# HG changeset patch
# User Keshav Kini <keshav.kini@gmail.com>
# Date 1337907415 25200
# Node ID bc6aae82c09a61c7a056fe5c82ae285f8f1e94c7
# Parent 8eabc2db2cca52b7b89eedbe74392d4f8e22e84c
Let <= and >= return True when lhs == rhs
diff git a/sage/plot/colors.py b/sage/plot/colors.py
a

b


458  458  def __le__(self, right): 
459  459  """ 
460  460  Check whether a :class:`Color` object is less than or equal to 
461   some other object. This doesn't make sense, and so we conclude 
462   that it is not less than or equal to the other object. 
 461  some other object. It wouldn't make sense for it to be less than 
 462  the other object, so we treat this the same as an equality 
 463  check. 
463  464  
464  465  INPUT: 
465  466  
… 
… 

472  473  EXAMPLES:: 
473  474  
474  475  sage: Color('red') <= Color('red') 
475   False 
 476  True 
476  477  sage: Color('blue') <= Color('red') 
477  478  False 
478  479  sage: Color('red') <= "xyzzy" 
479  480  False 
480  481  """ 
481   return False 
 482  return self == right 
482  483  
483  484  def __eq__(self, right): 
484  485  """ 
… 
… 

564  565  def __ge__(self, right): 
565  566  """ 
566  567  Check whether a :class:`Color` object is greater than or equal 
567   to some other object. This doesn't make sense, and so we 
568   conclude that it is not greater than or equal to the other 
569   object. 
 568  to some other object. It wouldn't make sense for it to be 
 569  greater than the other object, so we treat this the same as an 
 570  equality check. 
570  571  
571  572  INPUT: 
572  573  
… 
… 

579  580  EXAMPLES:: 
580  581  
581  582  sage: Color('red') >= Color('red') 
582   False 
 583  True 
583  584  sage: Color('blue') >= Color('red') 
584  585  False 
585  586  sage: Color('red') >= "xyzzy" 
586  587  False 
587  588  """ 
588   return False 
 589  return self == right 
589  590  
590  591  def __hash__(self): 
591  592  """ 