summaryrefslogtreecommitdiffstats
path: root/Parser/myreadline.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-09-08 18:21:54 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-09-08 18:21:54 (GMT)
commit940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 (patch)
tree7a326f041f1187cdbd6622e7eb97ceb2af6c0d44 /Parser/myreadline.c
parentdee6e252cc59c3143786f3e4cfaa1a6c335381b6 (diff)
downloadcpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.zip
cpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.tar.gz
cpython-940f33a50f3877cbde7adb59ba6e1a0a0acd3d11.tar.bz2
Issue #23524: Finish removing _PyVerify_fd from sources
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r--Parser/myreadline.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
index 28c7b6d..9522c79 100644
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -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;