summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-07-04 10:35:31 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-07-04 10:35:31 (GMT)
commit7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7 (patch)
tree14cc12990e39950f635afd510f813324b8ee444e /Doc/extending
parent196a530e00d88a138973bf9182e013937e293f97 (diff)
downloadcpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.zip
cpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.tar.gz
cpython-7f41c8e0dd237d1f3f0a1d2ba2f3ee4e4bd400a7.tar.bz2
bpo-37493: use _PyObject_CallNoArg in more places (GH-14575)
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 308c067..7e0b18d 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -104,7 +104,7 @@ done. This can be done using the :c:func:`PyErr_Fetch` and
/* This saves the current exception state */
PyErr_Fetch(&err_type, &err_value, &err_traceback);
- cbresult = PyObject_CallObject(self->my_callback, NULL);
+ cbresult = PyObject_CallNoArgs(self->my_callback);
if (cbresult == NULL)
PyErr_WriteUnraisable(self->my_callback);
else