From 522267e7845becb76e0e1cbaa875ad0da9fd58cc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Fri, 10 Aug 2012 18:55:08 -0400 Subject: 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. --- Include/import.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/import.h') 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); -- cgit v1.2.1