summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerman M. Bravo <german.mb@deipi.com>2013-05-06 09:48:01 -0500
committerGerman M. Bravo <german.mb@deipi.com>2013-05-06 09:48:01 -0500
commitb52ba40d692f3a6baab32d84c60b827721a031f1 (patch)
treeaf6253b55de4c75ef3f58b2471b1b684a132c669
parent151b8b3d1e06f7b963e91fcc1bdebd7d4b060c2f (diff)
downloadpyscss-b52ba40d692f3a6baab32d84c60b827721a031f1.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/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/__init__.py b/scss/__init__.py
index 93b162f..870ceae 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -3631,7 +3631,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])
################################################################################