Mercurial > cpython-lru_cache-weakref
diff Objects/weakrefobject.c @ 71810:d0b0fcbb40db
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
The macro was introduced in #12724.
| author | Brian Curtin <brian@python.org> |
|---|---|
| date | Wed, 10 Aug 2011 20:28:54 -0500 |
| parents | 513bab5cfb18 |
| children | 5e33219492bc |
line wrap: on
line diff
--- a/Objects/weakrefobject.c Wed Aug 10 20:05:21 2011 -0500 +++ b/Objects/weakrefobject.c Wed Aug 10 20:28:54 2011 -0500 @@ -193,8 +193,7 @@ if ((op != Py_EQ && op != Py_NE) || !PyWeakref_Check(self) || !PyWeakref_Check(other)) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; + Py_RETURN_NOTIMPLEMENTED; } if (PyWeakref_GET_OBJECT(self) == Py_None || PyWeakref_GET_OBJECT(other) == Py_None) {
