From 44383384b325aa9a492df52393f6cfdde9d9d8a2 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 8 Oct 2001 16:49:26 +0000 Subject: [PATCH] type_subclasses(): debug build was broken due to typo in new assert(). --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index c0685484f9c..34a20e14c00 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1147,7 +1147,7 @@ type_subclasses(PyTypeObject *type, PyObject *args_ignored) n = PyList_GET_SIZE(raw); for (i = 0; i < n; i++) { ref = PyList_GET_ITEM(raw, i); - assert(PyWeakref_CheckRef(res)); + assert(PyWeakref_CheckRef(ref)); ref = PyWeakref_GET_OBJECT(ref); if (ref != Py_None) { if (PyList_Append(list, ref) < 0) {