From 996fad315cbbc16b33c9983f758787ec69507864 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Mon, 22 Oct 2001 16:31:40 +0000 Subject: Referencable is not a word, so don't use it in an error message . --- Objects/weakrefobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index e821154..e9d0b4b 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; } -- cgit v0.12