diff options
author | Brett Cannon <brett@python.org> | 2012-08-10 22:55:08 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-08-10 22:55:08 (GMT) |
commit | 522267e7845becb76e0e1cbaa875ad0da9fd58cc (patch) | |
tree | 31e81dc3f2fddd48e7263211cf2db11669f24ed0 /Include | |
parent | f410ce8c0989ef14f0f935e256d82e96f5e0602b (diff) | |
download | cpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.zip cpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.tar.gz cpython-522267e7845becb76e0e1cbaa875ad0da9fd58cc.tar.bz2 |
Issue #15610: The PyImport_ImportModuleEx macro now calls
PyImport_ImportModuleLevel() with a 'level' of 0 instead of -1 as the
latter is no longer a valid value.
Also added a versionchanged note for PyImport_ImportModuleLevel() just
in case people don't make the connection between changes to
__import__() and this C function.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/import.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/import.h b/Include/import.h index bc21ae2..fdc2733 100644 --- a/Include/import.h +++ b/Include/import.h @@ -62,7 +62,7 @@ PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject( ); #define PyImport_ImportModuleEx(n, g, l, f) \ - PyImport_ImportModuleLevel(n, g, l, f, -1) + PyImport_ImportModuleLevel(n, g, l, f, 0) PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path); PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name); |