From: Fred Drake Date: Fri, 4 Aug 2006 05:16:04 +0000 (+0000) Subject: SF patch #1534048 (bug #1531003): fix typo in error message X-Git-Tag: v2.4.4c1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=588b0e26db2f6c779d80ccfa5972af54df408f9b;p=thirdparty%2FPython%2Fcpython.git SF patch #1534048 (bug #1531003): fix typo in error message --- 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);