summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.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 /Modules/mmapmodule.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 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c4
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