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/errors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/errors.c') diff --git a/Python/errors.c b/Python/errors.c index 61dc597916..6baa229ccc 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -573,7 +573,7 @@ PyErr_BadArgument(void) PyObject * _PyErr_NoMemory(PyThreadState *tstate) { - if (Py_TYPE(PyExc_MemoryError) == NULL) { + if (Py_IS_TYPE(PyExc_MemoryError, NULL)) { /* PyErr_NoMemory() has been called before PyExc_MemoryError has been initialized by _PyExc_Init() */ Py_FatalError("Out of memory and PyExc_MemoryError is not " -- cgit v1.2.1