summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-08-16 20:38:44 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-08-16 20:38:44 -0500
commit7c1610b14b7ab32ef5b694368d0d4f82db800e3e (patch)
tree4c703892b5b21fc630a8e6288fb3b7bfc5c4e8bc
parentf033194585a30425ce465b08a2f71d026f8e9a02 (diff)
downloadpyscss-7c1610b14b7ab32ef5b694368d0d4f82db800e3e.tar.gz
Comparisions return Boolean type
-rw-r--r--scss/types.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/scss/types.py b/scss/types.py
index 4a1cf50..e2c8692 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -273,20 +273,19 @@ class Number(Value):
def __eq__(self, other):
if not isinstance(other, Number):
return Boolean(False)
-
- return self._compare(other, operator.__eq__)
+ return Boolean(self._compare(other, operator.__eq__))
def __lt__(self, other):
- return self._compare(other, operator.__lt__)
+ return Boolean(self._compare(other, operator.__lt__))
def __le__(self, other):
- return self._compare(other, operator.__le__)
+ return Boolean(self._compare(other, operator.__le__))
def __gt__(self, other):
- return self._compare(other, operator.__gt__)
+ return Boolean(self._compare(other, operator.__gt__))
def __ge__(self, other):
- return self._compare(other, operator.__ge__)
+ return Boolean(self._compare(other, operator.__ge__))
def _compare(self, other, op):
if not isinstance(other, Number):