diff options
author | Jeroen Demeyer <J.Demeyer@UGent.be> | 2019-07-08 10:19:25 +0200 |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-07-08 17:19:25 +0900 |
commit | 762f93ff2efd6b7ef0177cad57939c0ab2002eac (patch) | |
tree | 4811b08fa9342c3b2575de7e7c1030d1d5eea8a0 /Modules/_gdbmmodule.c | |
parent | 38f44b4a4adc37e8f5f8971917d8b3145f351a56 (diff) | |
download | cpython-git-762f93ff2efd6b7ef0177cad57939c0ab2002eac.tar.gz |
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
Diffstat (limited to 'Modules/_gdbmmodule.c')
-rw-r--r-- | Modules/_gdbmmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c index 77e7887525..dd4a348d13 100644 --- a/Modules/_gdbmmodule.c +++ b/Modules/_gdbmmodule.c @@ -497,7 +497,7 @@ static PyObject * dbm__exit__(PyObject *self, PyObject *args) { _Py_IDENTIFIER(close); - return _PyObject_CallMethodId(self, &PyId_close, NULL); + return _PyObject_CallMethodIdNoArgs(self, &PyId_close); } static PyMethodDef dbm_methods[] = { |