From: Fred Drake Date: Fri, 4 Aug 2006 05:17:21 +0000 (+0000) Subject: SF patch #1534048 (bug #1531003): fix typo in error message X-Git-Tag: v2.5c1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a36f5f34456ee1bc5fc65b449f4f81c835ece50;p=python SF patch #1534048 (bug #1531003): fix typo in error message --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 6b484304a3..67e6104fd3 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -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);