Mercurial > cpython-lru_cache-weakref
diff Objects/weakrefobject.c @ 20532:bc138bc73cdd legacy-trunk
Remove an unnecessary check for NULL.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 18 Oct 2001 19:21:46 +0000 |
| parents | cb87bd97f740 |
| children | bf4b37518c14 |
line wrap: on
line diff
--- a/Objects/weakrefobject.c Thu Oct 18 19:20:25 2001 +0000 +++ b/Objects/weakrefobject.c Thu Oct 18 19:21:46 2001 +0000 @@ -233,15 +233,14 @@ return generic(x, y); \ } -/* Note that the second and third args need to be checked for NULL since - * (at least) the tp_call slot can receive NULL for either of those args. +/* Note that the third arg needs to be checked for NULL since the tp_call + * slot can receive NULL for this arg. */ #define WRAP_TERNARY(method, generic) \ static PyObject * \ method(PyObject *proxy, PyObject *v, PyObject *w) { \ UNWRAP(proxy); \ - if (v != NULL) \ - UNWRAP(v); \ + UNWRAP(v); \ if (w != NULL) \ UNWRAP(w); \ return generic(proxy, v, w); \
