summaryrefslogtreecommitdiffstats
path: root/Modules/faulthandler.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/faulthandler.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/faulthandler.c')
-rw-r--r--Modules/faulthandler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index c2d3000..1c1e4fb 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -159,7 +159,7 @@ faulthandler_get_fileno(PyObject **file_ptr)
fd = _PyLong_AsInt(file);
if (fd == -1 && PyErr_Occurred())
return -1;
- if (fd < 0 || !_PyVerify_fd(fd)) {
+ if (fd < 0) {
PyErr_SetString(PyExc_ValueError,
"file is not a valid file descripter");
return -1;