Commit b2aef2f5 authored by Jeremy Hylton's avatar Jeremy Hylton

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

parent cf758bda
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment