summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:46:19 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 17:46:19 (GMT)
commitf17c3de2635df4f5a51c2cb6b99f3e125af19864 (patch)
tree0ce2ba9e92cf1872d318ea136b4640bd7579666f /Modules/_ssl.c
parenta5ed5f000aad67d216201d959de4c70b7575309d (diff)
downloadcpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.zip
cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.gz
cpython-f17c3de2635df4f5a51c2cb6b99f3e125af19864.tar.bz2
Use _PyObject_CallNoArg()
Replace: PyObject_CallFunctionObjArgs(callable, NULL) with: _PyObject_CallNoArg(callable)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index b198857..6003476 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -3197,7 +3197,7 @@ _password_callback(char *buf, int size, int rwflag, void *userdata)
PySSL_END_ALLOW_THREADS_S(pw_info->thread_state);
if (pw_info->callable) {
- fn_ret = PyObject_CallFunctionObjArgs(pw_info->callable, NULL);
+ fn_ret = _PyObject_CallNoArg(pw_info->callable);
if (!fn_ret) {
/* TODO: It would be nice to move _ctypes_add_traceback() into the
core python API, so we could use it to add a frame here */