summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-13 19:15:41 +0200
committerraveit65 <[email protected]>2021-10-26 13:35:44 +0200
commit3dc0bd2ffb20854268fe2992839109e7d3ef3469 (patch)
tree8954c2cf25e79f7cb703532e4d92015b00af0c11
parent3cba13a9929995ee3adeb209adf7843381ec86d8 (diff)
downloadpython-caja-1.26.tar.bz2
python-caja-1.26.tar.xz
caja-python: do not discard const modifier in PyImport_ImportModuleEx1.26
PyObject *PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
-rw-r--r--src/caja-python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caja-python.c b/src/caja-python.c
index 60841b6..932d681 100644
--- a/src/caja-python.c
+++ b/src/caja-python.c
@@ -107,7 +107,7 @@ caja_python_load_file(GTypeModule *type_module,
}
main_locals = PyModule_GetDict(main_module);
- module = PyImport_ImportModuleEx((char *) filename, main_locals, main_locals, NULL);
+ module = PyImport_ImportModuleEx(filename, main_locals, main_locals, NULL);
if (!module)
{
PyErr_Print();