commit | 762f93ff2efd6b7ef0177cad57939c0ab2002eac | [log] [tgz] |
---|---|---|
author | Jeroen Demeyer <J.Demeyer@UGent.be> | Mon Jul 08 10:19:25 2019 +0200 |
committer | Inada Naoki <songofacandy@gmail.com> | Mon Jul 08 17:19:25 2019 +0900 |
tree | 4811b08fa9342c3b2575de7e7c1030d1d5eea8a0 | |
parent | 38f44b4a4adc37e8f5f8971917d8b3145f351a56 [diff] [blame] |
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index ae3f6dc..e8a429a 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c
@@ -455,7 +455,7 @@ method(PyObject *proxy, PyObject *Py_UNUSED(ignored)) { \ _Py_IDENTIFIER(special); \ UNWRAP(proxy); \ - return _PyObject_CallMethodId(proxy, &PyId_##special, NULL); \ + return _PyObject_CallMethodIdNoArgs(proxy, &PyId_##special); \ }