summaryrefslogtreecommitdiff
path: root/Include/import.h
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-08-10 18:55:08 -0400
committerBrett Cannon <brett@python.org>2012-08-10 18:55:08 -0400
commit522267e7845becb76e0e1cbaa875ad0da9fd58cc (patch)
tree31e81dc3f2fddd48e7263211cf2db11669f24ed0 /Include/import.h
parentf410ce8c0989ef14f0f935e256d82e96f5e0602b (diff)
downloadcpython-git-522267e7845becb76e0e1cbaa875ad0da9fd58cc.tar.gz
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/import.h')
-rw-r--r--Include/import.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/import.h b/Include/import.h
index bc21ae2f47..fdc27336c3 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);