Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.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 | 8587305b259b |
| children | 15659e0e2b2e |
line wrap: on
line diff
--- a/Modules/arraymodule.c Wed Aug 10 20:05:21 2011 -0500 +++ b/Modules/arraymodule.c Wed Aug 10 20:28:54 2011 -0500 @@ -514,10 +514,8 @@ Py_ssize_t i, k; PyObject *res; - if (!array_Check(v) || !array_Check(w)) { - Py_INCREF(Py_NotImplemented); - return Py_NotImplemented; - } + if (!array_Check(v) || !array_Check(w)) + Py_RETURN_NOTIMPLEMENTED; va = (arrayobject *)v; wa = (arrayobject *)w;
