mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #23524: Finish removing _PyVerify_fd from sources
This commit is contained in:
parent
dee6e252cc
commit
940f33a50f
10 changed files with 27 additions and 258 deletions
|
@ -41,10 +41,7 @@ my_fgets(char *buf, int len, FILE *fp)
|
|||
(void)(PyOS_InputHook)();
|
||||
errno = 0;
|
||||
clearerr(fp);
|
||||
if (_PyVerify_fd(fileno(fp)))
|
||||
p = fgets(buf, len, fp);
|
||||
else
|
||||
p = NULL;
|
||||
p = fgets(buf, len, fp);
|
||||
if (p != NULL)
|
||||
return 0; /* No error */
|
||||
err = errno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue