mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-127350: Add Py_fopen() and Py_fclose() functions (#127821)
This commit is contained in:
parent
7e8c571604
commit
f89e5e20cb
18 changed files with 270 additions and 53 deletions
|
@ -1981,7 +1981,7 @@ _PyErr_ProgramDecodedTextObject(PyObject *filename, int lineno, const char* enco
|
|||
return NULL;
|
||||
}
|
||||
|
||||
FILE *fp = _Py_fopen_obj(filename, "r" PY_STDIOTEXTMODE);
|
||||
FILE *fp = Py_fopen(filename, "r" PY_STDIOTEXTMODE);
|
||||
if (fp == NULL) {
|
||||
PyErr_Clear();
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue