gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user