summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.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/pythonrun.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/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 31e065f..0da26ad 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -467,7 +467,7 @@ _PyRun_SimpleFileObject(FILE *fp, PyObject *filename, int closeit,
fclose(fp);
}
- pyc_fp = _Py_fopen_obj(filename, "rb");
+ pyc_fp = Py_fopen(filename, "rb");
if (pyc_fp == NULL) {
fprintf(stderr, "python: Can't reopen .pyc file\n");
goto done;