summaryrefslogtreecommitdiff
path: root/scss/expression.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-15 16:00:16 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-15 16:00:16 -0700
commitc110c14affb066fb861ac688f287d0f3067dd11d (patch)
tree06451a8605382ae332b7f83346077b5f75a1576e /scss/expression.py
parent1b97eefb7895435203631c79ce9c32192927e7b7 (diff)
downloadpyscss-c110c14affb066fb861ac688f287d0f3067dd11d.tar.gz
Support destructuring @each.
Diffstat (limited to 'scss/expression.py')
-rw-r--r--scss/expression.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scss/expression.py b/scss/expression.py
index e970ccf..065d2b3 100644
--- a/scss/expression.py
+++ b/scss/expression.py
@@ -42,11 +42,11 @@ class Calculator(object):
better_expr_str = self.evaluate_expression(_base_str)
if better_expr_str is None:
- better_expr_str = self.apply_vars(_base_str)
+ return self.apply_vars(_base_str)
+ elif better_expr_str.is_null:
+ return ""
else:
- better_expr_str = dequote(better_expr_str.render())
-
- return better_expr_str
+ return dequote(better_expr_str.render())
def do_glob_math(self, cont):
"""Performs #{}-interpolation. The result is always treated as a fixed