From dffe4c07095e0c693e094d3c140e85a68bd8128e Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Wed, 4 Mar 2020 07:15:20 -0600 Subject: bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601) --- Python/importdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/importdl.c') diff --git a/Python/importdl.c b/Python/importdl.c index 1d0d32a237..fbeb9fb754 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -181,7 +181,7 @@ _PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *fp) m = NULL; goto error; } - if (Py_TYPE(m) == NULL) { + if (Py_IS_TYPE(m, NULL)) { /* This can happen when a PyModuleDef is returned without calling * PyModuleDef_Init on it */ -- cgit v1.2.1