File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,8 @@ static struct SassValue* _number_to_sass_value(PyObject* value) {
216
216
static struct SassValue * _unicode_to_sass_value (PyObject * value ) {
217
217
struct SassValue * retv = NULL ;
218
218
PyObject * bytes = PyUnicode_AsEncodedString (value , "UTF-8" , "strict" );
219
- retv = sass_make_string (PyBytes_AsString (bytes ));
219
+ /* TODO: need a way to set quoted vs not (second arg) */
220
+ retv = sass_make_string (PyBytes_AsString (bytes ), 0 );
220
221
Py_DECREF (bytes );
221
222
return retv ;
222
223
}
@@ -335,7 +336,8 @@ static struct SassValue* _to_sass_value(PyObject* value) {
335
336
} else if (PyUnicode_Check (value )) {
336
337
retv = _unicode_to_sass_value (value );
337
338
} else if (PyBytes_Check (value )) {
338
- retv = sass_make_string (PyBytes_AsString (value ));
339
+ /* TODO: need a way to set quoted vs not (second arg) */
340
+ retv = sass_make_string (PyBytes_AsString (value ), 0 );
339
341
/* XXX: PyMapping_Check returns true for lists and tuples in python3 :( */
340
342
/* XXX: pypy derps on dicts: https://bitbucket.org/pypy/pypy/issue/1970 */
341
343
} else if (PyDict_Check (value ) || PyObject_IsInstance (value , mapping_t )) {
You can’t perform that action at this time.
0 commit comments