summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-03-06 22:47:02 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2015-03-06 22:47:02 (GMT)
commitd81431f587e9eab67db683908548b0ad46847b38 (patch)
tree69bbc1cdda06acab523871f322982b00931a3675 /Modules/_io
parenteef20de744cfdf971d5a80d6e3f9c7f7cb9e14fc (diff)
downloadcpython-d81431f587e9eab67db683908548b0ad46847b38.zip
cpython-d81431f587e9eab67db683908548b0ad46847b38.tar.gz
cpython-d81431f587e9eab67db683908548b0ad46847b38.tar.bz2
Issue #23524: Replace _PyVerify_fd function with calling _set_thread_local_invalid_parameter_handler on every thread.
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index c444231..ab9eb8c 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -182,7 +182,7 @@ check_fd(int fd)
{
#if defined(HAVE_FSTAT) || defined(MS_WINDOWS)
struct _Py_stat_struct buf;
- if (!_PyVerify_fd(fd) || (_Py_fstat(fd, &buf) < 0 && errno == EBADF)) {
+ if (_Py_fstat(fd, &buf) < 0 && errno == EBADF) {
PyObject *exc;
char *msg = strerror(EBADF);
exc = PyObject_CallFunction(PyExc_OSError, "(is)",