Ticket #12974: trac_12974-colorfix.patch

File trac_12974-colorfix.patch, 821 bytes (added by kcrisman, 9 years ago)
  • sage/plot/colors.py

    # HG changeset patch
    # User Karl-Dieter Crisman <kcrisman@gmail.com>
    # Date 1340895284 14400
    # Node ID 5008fbd333d1d8188eb0f4b82e68d35ca095a699
    # Parent  84dec22374e21e7e5a4760e689e0e93c02ee7d03
    Trac 12974 - fix final few double-underscores in colors.py
    
    diff --git a/sage/plot/colors.py b/sage/plot/colors.py
    a b  
    506506            False
    507507        """
    508508        if isinstance(right, Color):
    509             return self.__rgb == right.__rgb
     509            return self._rgb == right._rgb
    510510        else:
    511511            return False
    512512
     
    604604            sage: hash(Color('red')) == hash(Color((1,0,0)))
    605605            True
    606606        """
    607         return hash(self.__rgb)
     607        return hash(self._rgb)
    608608
    609609    def blend(self, color, fraction=0.5):
    610610        """