From: Jeremy Hylton Date: Mon, 22 Oct 2001 16:31:40 +0000 (+0000) Subject: Referencable is not a word, so don't use it in an error message . X-Git-Tag: v2.2.1c1~1110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=996fad315cbbc16b33c9983f758787ec69507864;p=thirdparty%2FPython%2Fcpython.git Referencable is not a word, so don't use it in an error message . --- diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index e8211543452e..e9d0b4b55164 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -558,7 +558,7 @@ PyWeakref_NewRef(PyObject *ob, PyObject *callback) if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) { PyErr_Format(PyExc_TypeError, - "'%s' objects are not weakly referencable", + "cannot create weak reference to '%s' object", ob->ob_type->tp_name); return NULL; } @@ -602,7 +602,7 @@ PyWeakref_NewProxy(PyObject *ob, PyObject *callback) if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) { PyErr_Format(PyExc_TypeError, - "'%s' objects are not weakly referencable", + "cannot create weak reference to '%s' object", ob->ob_type->tp_name); return NULL; }