summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-05-06 09:50:12 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-05-06 09:50:12 -0500
commit03f852d16c0737bb336024df1487538ff3d595c7 (patch)
tree4aeb53be186ceb3be7c57682586a1f45ed0793d7
parentb0cdfdc5961beaefb187405e6a6114ec6307f126 (diff)
downloadpyscss-03f852d16c0737bb336024df1487538ff3d595c7.tar.gz
Fix some gradient expansions. (Thanks to QuLogic)
The ListValue class constructor doesn't know how to handle a generator, and tried converting it into a string, which just gives you the internal name/pointer.
-rw-r--r--scss/functions/compass/gradients.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/functions/compass/gradients.py b/scss/functions/compass/gradients.py
index e559016..e5b53c3 100644
--- a/scss/functions/compass/gradients.py
+++ b/scss/functions/compass/gradients.py
@@ -119,7 +119,7 @@ def grad_point(*p):
vrt = NumberValue(0, '%')
elif 'bottom' in pos:
vrt = NumberValue(1, '%')
- return ListValue(v for v in (hrz, vrt) if v is not None)
+ return ListValue([v for v in (hrz, vrt) if v is not None])
def __grad_position(index, default, radial, color_stops):