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 /Modules/mmapmodule.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 'Modules/mmapmodule.c')
-rw-r--r-- | Modules/mmapmodule.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index b0015a5..73c37d0 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1326,10 +1326,6 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) */ if (fileno != -1 && fileno != 0) { /* Ensure that fileno is within the CRT's valid range */ - if (!_PyVerify_fd(fileno)) { - PyErr_SetFromErrno(PyExc_OSError); - return NULL; - } _Py_BEGIN_SUPPRESS_IPH fh = (HANDLE)_get_osfhandle(fileno); _Py_END_SUPPRESS_IPH |