We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff63fa4 commit e3c3f57Copy full SHA for e3c3f57
pysass.cpp
@@ -331,7 +331,8 @@ static union Sass_Value* _to_sass_value(PyObject* value) {
331
} else if (PySass_Bytes_Check(value)) {
332
retv = sass_make_string(PySass_Bytes_AS_STRING(value));
333
/* XXX: PyMapping_Check returns true for lists and tuples in python3 :( */
334
- } else if (PyObject_IsInstance(value, mapping_t)) {
+ /* XXX: pypy derps on dicts: https://bitbucket.org/pypy/pypy/issue/1970 */
335
+ } else if (PyDict_Check(value) || PyObject_IsInstance(value, mapping_t)) {
336
retv = _mapping_to_sass_value(value);
337
} else if (PyObject_IsInstance(value, sass_number_t)) {
338
retv = _number_to_sass_value(value);
0 commit comments