diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-06 18:46:19 +0100 |
commit | a95a307d2cbb7fc1c778691f142e0c21c05fd5bc (patch) | |
tree | ad6414ad4a6b87daa31bd39654bbbee776488550 /Modules/_ssl.c | |
parent | b729181a504b6aff2461dcbc07c33e902ee90cb0 (diff) | |
download | cpython-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.c | 2 |
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 */ |