Referencable is not a word, so don't use it in an error message <wink>.

This commit is contained in:
Jeremy Hylton 2001-10-22 16:31:40 +00:00
parent 39a362d9f4
commit 996fad315c

View file

@ -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;
}