diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-09-08 18:21:54 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-09-08 18:21:54 (GMT) |
commit | 940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 (patch) | |
tree | 7a326f041f1187cdbd6622e7eb97ceb2af6c0d44 /Parser/myreadline.c | |
parent | dee6e252cc59c3143786f3e4cfaa1a6c335381b6 (diff) | |
download | cpython-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.c | 5 |
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; |