diff options
-rw-r--r-- | Include/import.h | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Python/import.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/Include/import.h b/Include/import.h index 6331edf..45544111 100644 --- a/Include/import.h +++ b/Include/import.h @@ -44,7 +44,7 @@ PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock( const char *name /* UTF-8 encoded string */ ); PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel( - char *name, /* UTF-8 encoded string */ + const char *name, /* UTF-8 encoded string */ PyObject *globals, PyObject *locals, PyObject *fromlist, @@ -826,6 +826,9 @@ C-API - PY_PATCHLEVEL_REVISION has been removed, since it's meaningless with Mercurial. +- Issue #12173: The first argument of PyImport_ImportModuleLevel is now `const + char *` instead of `char *1`. + Documentation ------------- 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; |