diff options
author | German M. Bravo <german.mb@deipi.com> | 2013-05-06 09:14:00 -0500 |
---|---|---|
committer | German M. Bravo <german.mb@deipi.com> | 2013-05-06 09:14:00 -0500 |
commit | bde0d127d7ed9be90c89cb2a53d76ab8227dfba7 (patch) | |
tree | 2c1dbb66eacb45e313bd80a98af6bb6342b6521d | |
parent | 8be41cce2283267a0110536f28197b0433dc78bc (diff) | |
download | pyscss-bde0d127d7ed9be90c89cb2a53d76ab8227dfba7.tar.gz |
Fix the reject function. (Thanks to QuLogic)
This function checks if each value in the list is 'not in' the
rejection list. However, the rejection parameter was never guaranteed
to be a list-type.
-rw-r--r-- | scss/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scss/__init__.py b/scss/__init__.py index fac4cf9..a85bad3 100644 --- a/scss/__init__.py +++ b/scss/__init__.py @@ -3705,6 +3705,8 @@ def _reject(lst, *values): values = values[0] if isinstance(values, ListValue): values = values.value.values() + elif not isinstance(values, (list, tuple)): + values = list(values) for i, item in lst.items(): if item not in values: ret[i] = item |