Commit 7a36f5f3 authored by Fred Drake's avatar Fred Drake

SF patch #1534048 (bug #1531003): fix typo in error message

parent 9a70f95e
......@@ -1490,7 +1490,7 @@ subtype_getweakref(PyObject *obj, void *context)
if (obj->ob_type->tp_weaklistoffset == 0) {
PyErr_SetString(PyExc_AttributeError,
"This object has no __weaklist__");
"This object has no __weakref__");
return NULL;
}
assert(obj->ob_type->tp_weaklistoffset > 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment