Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sugar/graphics/xocolor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/graphics/xocolor.py b/sugar/graphics/xocolor.py
index 3f9fe31..d37eab1 100644
--- a/sugar/graphics/xocolor.py
+++ b/sugar/graphics/xocolor.py
@@ -225,9 +225,9 @@ class XoColor:
def __cmp__(self, other):
if isinstance(other, XoColor):
- return self._stroke == other._stroke and self._fill == other._fill
- else:
- return -1
+ if self._stroke == other._stroke and self._fill == other._fill:
+ return 0
+ return -1
def get_stroke_color(self):
return self._stroke