summaryrefslogtreecommitdiff
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-06 18:46:19 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-12-06 18:46:19 +0100
commita95a307d2cbb7fc1c778691f142e0c21c05fd5bc (patch)
treead6414ad4a6b87daa31bd39654bbbee776488550 /Modules/_ssl.c
parentb729181a504b6aff2461dcbc07c33e902ee90cb0 (diff)
downloadcpython-a95a307d2cbb7fc1c778691f142e0c21c05fd5bc.tar.gz
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 b198857060..6003476052 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 */