Skip to content

Commit 3bb0631

Browse files
committed
import errors are still broken, code commented for now
1 parent fcd8d48 commit 3bb0631

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

_sass.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,17 @@ static struct SassValue* _exception_to_sass_error() {
309309
return retv;
310310
}
311311

312-
static Sass_Import_List _exception_to_sass_import_error(const char* path) {
312+
static struct SassImportList* _exception_to_sass_import_error(const char* path) {
313+
return 0;
314+
/*
313315
PyObject* bytes = _exception_to_bytes();
314-
Sass_Import_List import_list = sass_make_import_list(1);
315-
import_list[0] = sass_make_import_entry(path, 0, 0);
316-
sass_import_set_error(import_list[0], PyBytes_AsString(bytes), 0, 0);
316+
struct SassImportList* import_list = sass_make_import_list();
317+
struct SassImport* import = sass_make_import_error(PyBytes_AsString(bytes));
318+
sass_import_list_push(import_list, import);
319+
sass_import_set_error_msg(import, PyBytes_AsString(bytes), 0, 0);
317320
Py_DECREF(bytes);
318321
return import_list;
322+
*/
319323
}
320324

321325
static struct SassValue* _to_sass_value(PyObject* value) {
@@ -420,12 +424,12 @@ static void _add_custom_functions(
420424
sass_option_set_c_functions(options, fn_list);
421425
}
422426

423-
static Sass_Import_List _call_py_importer_f(
427+
static struct SassImportList* _call_py_importer_f(
424428
const char* path, Sass_Importer_Entry cb, struct Sass_Compiler* comp
425429
) {
426430
PyObject* pyfunc = (PyObject*)sass_importer_get_cookie(cb);
427431
PyObject* py_result = NULL;
428-
Sass_Import_List sass_imports = NULL;
432+
struct SassImportList* sass_imports = NULL;
429433
struct Sass_Import* previous;
430434
const char* prev_path;
431435
Py_ssize_t i;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy