diff options
author | Victor Stinner <vstinner@python.org> | 2021-10-11 22:42:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 22:42:23 (GMT) |
commit | ce3489cfdb9f0e050bdc45ce5d3902c2577ea683 (patch) | |
tree | 2493f172e9eddadbd5ca53cb810ddd4971bbcef3 /Objects/odictobject.c | |
parent | fb8f208a4ddb38eedee71f9ecd0f22058802dab1 (diff) | |
download | cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.zip cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.tar.gz cpython-ce3489cfdb9f0e050bdc45ce5d3902c2577ea683.tar.bz2 |
bpo-45439: Rename _PyObject_CallNoArg() to _PyObject_CallNoArgs() (GH-28891)
Fix typo in the private _PyObject_CallNoArg() function name: rename
it to _PyObject_CallNoArgs() to be consistent with the public
function PyObject_CallNoArgs().
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r-- | Objects/odictobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c index e5361da..1462a3b 100644 --- a/Objects/odictobject.c +++ b/Objects/odictobject.c @@ -1203,7 +1203,7 @@ odict_copy(register PyODictObject *od, PyObject *Py_UNUSED(ignored)) if (PyODict_CheckExact(od)) od_copy = PyODict_New(); else - od_copy = _PyObject_CallNoArg((PyObject *)Py_TYPE(od)); + od_copy = _PyObject_CallNoArgs((PyObject *)Py_TYPE(od)); if (od_copy == NULL) return NULL; @@ -2221,7 +2221,7 @@ mutablemapping_update_arg(PyObject *self, PyObject *arg) return -1; } if (func != NULL) { - PyObject *keys = _PyObject_CallNoArg(func); + PyObject *keys = _PyObject_CallNoArgs(func); Py_DECREF(func); if (keys == NULL) { return -1; @@ -2253,7 +2253,7 @@ mutablemapping_update_arg(PyObject *self, PyObject *arg) return -1; } if (func != NULL) { - PyObject *items = _PyObject_CallNoArg(func); + PyObject *items = _PyObject_CallNoArgs(func); Py_DECREF(func); if (items == NULL) { return -1; |