type_subclasses(): debug build was broken due to typo in new assert().

This commit is contained in:
Tim Peters 2001-10-08 16:49:26 +00:00
parent 4570455813
commit 44383384b3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {