diff options
author | Fred Drake <fdrake@acm.org> | 2001-10-18 19:21:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-10-18 19:21:46 (GMT) |
commit | 31f4d1fa4ba5cd65db56695b021d96f12087dc12 (patch) | |
tree | 3102de63677bd007c4e22b7a38286a0f55257871 | |
parent | 6c4bce3b5c843be20980aa082ac0ecc027b7ad58 (diff) | |
download | cpython-31f4d1fa4ba5cd65db56695b021d96f12087dc12.zip cpython-31f4d1fa4ba5cd65db56695b021d96f12087dc12.tar.gz cpython-31f4d1fa4ba5cd65db56695b021d96f12087dc12.tar.bz2 |
Remove an unnecessary check for NULL.
-rw-r--r-- | Objects/weakrefobject.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index 886d874..e821154 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -233,15 +233,14 @@ proxy_checkref(PyWeakReference *proxy) 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); \ |