From 588b0e26db2f6c779d80ccfa5972af54df408f9b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 4 Aug 2006 05:16:04 +0000 Subject: [PATCH] SF patch #1534048 (bug #1531003): fix typo in error message --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index c2312fe0e609..d6e678027689 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1458,7 +1458,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); -- 2.47.3