mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
parent
9a70f95ee8
commit
7a36f5f344
1 changed files with 1 additions and 1 deletions
|
|
@ -1490,7 +1490,7 @@ subtype_getweakref(PyObject *obj, void *context)
|
||||||
|
|
||||||
if (obj->ob_type->tp_weaklistoffset == 0) {
|
if (obj->ob_type->tp_weaklistoffset == 0) {
|
||||||
PyErr_SetString(PyExc_AttributeError,
|
PyErr_SetString(PyExc_AttributeError,
|
||||||
"This object has no __weaklist__");
|
"This object has no __weakref__");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
assert(obj->ob_type->tp_weaklistoffset > 0);
|
assert(obj->ob_type->tp_weaklistoffset > 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue