summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.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 /Python/sysmodule.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 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d6719f9..887591a 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -2356,7 +2356,7 @@ static PyObject *
sys__dump_tracelets_impl(PyObject *module, PyObject *outpath)
/*[clinic end generated code: output=a7fe265e2bc3b674 input=5bff6880cd28ffd1]*/
{
- FILE *out = _Py_fopen_obj(outpath, "wb");
+ FILE *out = Py_fopen(outpath, "wb");
if (out == NULL) {
return NULL;
}