diff options
author | Victor Stinner <vstinner@python.org> | 2025-01-06 12:43:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 12:43:09 (GMT) |
commit | f89e5e20cb8964653ea7d6f53d3e40953b6548ce (patch) | |
tree | 743bfa078c6861561f1a1b908fc848b968e89fad /Python/pythonrun.c | |
parent | 7e8c571604cd18e65cefd26bfc48082840264549 (diff) | |
download | cpython-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.c | 2 |
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; |