Kaydet (Commit) 31f4d1fa authored tarafından Fred Drake's avatar Fred Drake

Remove an unnecessary check for NULL.

üst 6c4bce3b
......@@ -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); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment