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 /PC | |
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 'PC')
-rw-r--r-- | PC/msvcrtmodule.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 0292741..c9d1e6c 100644 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -189,16 +189,11 @@ msvcrt_get_osfhandle_impl(PyObject *module, int fd) { intptr_t handle = -1; - if (!_PyVerify_fd(fd)) { - PyErr_SetFromErrno(PyExc_IOError); - } - else { _Py_BEGIN_SUPPRESS_IPH - handle = _get_osfhandle(fd); + handle = _get_osfhandle(fd); _Py_END_SUPPRESS_IPH - if (handle == -1) - PyErr_SetFromErrno(PyExc_IOError); - } + if (handle == -1) + PyErr_SetFromErrno(PyExc_IOError); return handle; } |