summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-05-25 14:29:00 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-05-25 14:29:00 (GMT)
commit04778a8150430edc2c441f2f86193ca690d60aa3 (patch)
tree0cf223fb7b2516fcbbbc8183e5cd5799abd7a5b6 /Python
parent8a021009ea5097dc7914d64b075f95133c15a58f (diff)
downloadcpython-04778a8150430edc2c441f2f86193ca690d60aa3.zip
cpython-04778a8150430edc2c441f2f86193ca690d60aa3.tar.gz
cpython-04778a8150430edc2c441f2f86193ca690d60aa3.tar.bz2
make PyImport_ImportModuleLevel's first arg const like similiar functions (closes #12173)
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index 5360d57..bfb976c 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -2818,7 +2818,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
}
PyObject *
-PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals,
+PyImport_ImportModuleLevel(const char *name, PyObject *globals, PyObject *locals,
PyObject *fromlist, int level)
{
PyObject *nameobj, *mod;