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/_posixsubprocess.c | |
parent | bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (diff) | |
download | cpython-762f93ff2efd6b7ef0177cad57939c0ab2002eac.tar.gz cpython-762f93ff2efd6b7ef0177cad57939c0ab2002eac.tar.bz2 cpython-762f93ff2efd6b7ef0177cad57939c0ab2002eac.zip |
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
Diffstat (limited to 'Modules/_posixsubprocess.c')
-rw-r--r-- | Modules/_posixsubprocess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 81a23c6d330..60c8eab90a1 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -60,7 +60,7 @@ _enable_gc(int need_to_reenable_gc, PyObject *gc_module) if (need_to_reenable_gc) { PyErr_Fetch(&exctype, &val, &tb); - result = _PyObject_CallMethodId(gc_module, &PyId_enable, NULL); + result = _PyObject_CallMethodIdNoArgs(gc_module, &PyId_enable); if (exctype != NULL) { PyErr_Restore(exctype, val, tb); } @@ -606,7 +606,7 @@ subprocess_fork_exec(PyObject* self, PyObject *args) gc_module = PyImport_ImportModule("gc"); if (gc_module == NULL) return NULL; - result = _PyObject_CallMethodId(gc_module, &PyId_isenabled, NULL); + result = _PyObject_CallMethodIdNoArgs(gc_module, &PyId_isenabled); if (result == NULL) { Py_DECREF(gc_module); return NULL; @@ -617,7 +617,7 @@ subprocess_fork_exec(PyObject* self, PyObject *args) Py_DECREF(gc_module); return NULL; } - result = _PyObject_CallMethodId(gc_module, &PyId_disable, NULL); + result = _PyObject_CallMethodIdNoArgs(gc_module, &PyId_disable); if (result == NULL) { Py_DECREF(gc_module); return NULL; |