Closes #13867: remove untrue comment about PyWeakref_Check().
This commit is contained in:
parent
245c765d0a
commit
fe9e3b8e21
|
@ -51,9 +51,6 @@ PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType;
|
||||||
((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
|
((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
|
||||||
(Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
(Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
||||||
|
|
||||||
/* This macro calls PyWeakref_CheckRef() last since that can involve a
|
|
||||||
function call; this makes it more likely that the function call
|
|
||||||
will be avoided. */
|
|
||||||
#define PyWeakref_Check(op) \
|
#define PyWeakref_Check(op) \
|
||||||
(PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
|
(PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue