Skip to content

Commit 429418d

Browse files
rbujraveit65
authored andcommitted
caja-python: do not discard const modifier in PyImport_ImportModuleEx
PyObject *PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
1 parent 97b29ba commit 429418d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/caja-python.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ caja_python_load_file(GTypeModule *type_module,
107107
}
108108

109109
main_locals = PyModule_GetDict(main_module);
110-
module = PyImport_ImportModuleEx((char *) filename, main_locals, main_locals, NULL);
110+
module = PyImport_ImportModuleEx(filename, main_locals, main_locals, NULL);
111111
if (!module)
112112
{
113113
PyErr_Print();

0 commit comments

Comments
 (0)