diff options
Diffstat (limited to 'scss/expression.py')
-rw-r--r-- | scss/expression.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scss/expression.py b/scss/expression.py index e24733f..b3224e5 100644 --- a/scss/expression.py +++ b/scss/expression.py @@ -223,7 +223,7 @@ class AnyOp(Expression): def evaluate(self, calculator, divide=False): operands = [operand.evaluate(calculator, divide=True) for operand in self.operands] - return any(operands) + return BooleanValue(any(operands)) class AllOp(Expression): def __init__(self, *operands): @@ -231,14 +231,15 @@ class AllOp(Expression): def evaluate(self, calculator, divide=False): operands = [operand.evaluate(calculator, divide=True) for operand in self.operands] - return all(operands) + return BooleanValue(all(operands)) class NotOp(Expression): def __init__(self, operand): self.operand = operand def evaluate(self, calculator, divide=False): - return not(self.operand.evaluate(calculator, divide=True)) + operand = self.operand.evaluate(calculator, divide=True) + return BooleanValue(not(operand)) class CallOp(Expression): def __init__(self, func_name, argspec): |