commit | 940f33a50f3877cbde7adb59ba6e1a0a0acd3d11 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Thu Sep 08 11:21:54 2016 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Thu Sep 08 11:21:54 2016 -0700 |
tree | 7a326f041f1187cdbd6622e7eb97ceb2af6c0d44 | |
parent | dee6e252cc59c3143786f3e4cfaa1a6c335381b6 [diff] [blame] |
Issue #23524: Finish removing _PyVerify_fd from sources
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 @@ 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;