diff options
author | Andy Lester <andy@petdance.com> | 2020-03-04 13:15:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 13:15:20 (GMT) |
commit | dffe4c07095e0c693e094d3c140e85a68bd8128e (patch) | |
tree | 1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 /Python/errors.c | |
parent | 22a9a546ff3bf2a63d77ca1e5494e758bc59132f (diff) | |
download | cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.zip cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.gz cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.bz2 |
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c index 61dc597..6baa229 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 " |