From 4375566a429ad288331a7f92e2462d7bace887b7 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 13 Dec 2024 16:09:37 +0100 Subject: [PATCH] Run make clinic --- Modules/_testcapi/clinic/file.c.h | 4 ++-- Modules/_testcapi/file.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/_testcapi/clinic/file.c.h b/Modules/_testcapi/clinic/file.c.h index 9856b6161cdfa0..2ca21fffcef680 100644 --- a/Modules/_testcapi/clinic/file.c.h +++ b/Modules/_testcapi/clinic/file.c.h @@ -8,7 +8,7 @@ PyDoc_STRVAR(_testcapi_py_fopen__doc__, "py_fopen($module, path, mode, /)\n" "--\n" "\n" -"Call Py_fopen() and return fread(256)."); +"Call Py_fopen(), fread(256) and Py_fclose(). Return read bytes."); #define _TESTCAPI_PY_FOPEN_METHODDEF \ {"py_fopen", _PyCFunction_CAST(_testcapi_py_fopen), METH_FASTCALL, _testcapi_py_fopen__doc__}, @@ -45,4 +45,4 @@ _testcapi_py_fopen(PyObject *module, PyObject *const *args, Py_ssize_t nargs) exit: return return_value; } -/*[clinic end generated code: output=968f4f4a620f13cf input=a9049054013a1b77]*/ +/*[clinic end generated code: output=c9fe964c3e5a0c32 input=a9049054013a1b77]*/ diff --git a/Modules/_testcapi/file.c b/Modules/_testcapi/file.c index 0ce0780623b9cd..4bad43010fd440 100644 --- a/Modules/_testcapi/file.c +++ b/Modules/_testcapi/file.c @@ -22,7 +22,7 @@ Call Py_fopen(), fread(256) and Py_fclose(). Return read bytes. static PyObject * _testcapi_py_fopen_impl(PyObject *module, PyObject *path, const char *mode) -/*[clinic end generated code: output=5a900af000f759de input=0878c2f9333abd60]*/ +/*[clinic end generated code: output=5a900af000f759de input=d7e7b8f0fd151953]*/ { FILE *fp = Py_fopen(path, mode); if (fp == NULL) {