[Python-checkins] CVS: python/dist/src/Objects weakrefobject.c,1.3,1.4
Jeremy Hylton
jhylton@users.sourceforge.net
2001年10月22日 09:31:42 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv31673
Modified Files:
weakrefobject.c
Log Message:
Referencable is not a word, so don't use it in an error message <wink>.
Index: weakrefobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/weakrefobject.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** weakrefobject.c 2001年10月18日 19:21:46 1.3
--- weakrefobject.c 2001年10月22日 16:31:40 1.4
***************
*** 559,563 ****
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
! "'%s' objects are not weakly referencable",
ob->ob_type->tp_name);
return NULL;
--- 559,563 ----
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
! "cannot create weak reference to '%s' object",
ob->ob_type->tp_name);
return NULL;
***************
*** 603,607 ****
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
! "'%s' objects are not weakly referencable",
ob->ob_type->tp_name);
return NULL;
--- 603,607 ----
if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) {
PyErr_Format(PyExc_TypeError,
! "cannot create weak reference to '%s' object",
ob->ob_type->tp_name);
return NULL;