mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Referencable is not a word, so don't use it in an error message <wink>.
This commit is contained in:
parent
39a362d9f4
commit
996fad315c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue