summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl/debughelpers.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-01-06 12:43:09 (GMT)
committerGitHub <noreply@github.com>2025-01-06 12:43:09 (GMT)
commitf89e5e20cb8964653ea7d6f53d3e40953b6548ce (patch)
tree743bfa078c6861561f1a1b908fc848b968e89fad /Modules/_ssl/debughelpers.c
parent7e8c571604cd18e65cefd26bfc48082840264549 (diff)
downloadcpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.zip
cpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.tar.gz
cpython-f89e5e20cb8964653ea7d6f53d3e40953b6548ce.tar.bz2
gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)
Diffstat (limited to 'Modules/_ssl/debughelpers.c')
-rw-r--r--Modules/_ssl/debughelpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ssl/debughelpers.c b/Modules/_ssl/debughelpers.c
index 9c87f8b..318c045 100644
--- a/Modules/_ssl/debughelpers.c
+++ b/Modules/_ssl/debughelpers.c
@@ -180,8 +180,8 @@ _PySSLContext_set_keylog_filename(PySSLContext *self, PyObject *arg, void *c) {
return 0;
}
- /* _Py_fopen_obj() also checks that arg is of proper type. */
- fp = _Py_fopen_obj(arg, "a" PY_STDIOTEXTMODE);
+ /* Py_fopen() also checks that arg is of proper type. */
+ fp = Py_fopen(arg, "a" PY_STDIOTEXTMODE);
if (fp == NULL)
return -1;