mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -180,8 +180,8 @@ _PySSLContext_set_keylog_filename(PySSLContext *self, PyObject *arg, void *c) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* _Py_fopen_obj() also checks that arg is of proper type. */
|
||||
fp = _Py_fopen_obj(arg, "a" PY_STDIOTEXTMODE);
|
||||
/* Py_fopen() also checks that arg is of proper type. */
|
||||
fp = Py_fopen(arg, "a" PY_STDIOTEXTMODE);
|
||||
if (fp == NULL)
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue