From 69dccc397ad1522309f15e4d5e0afe68b782ba66 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sun, 10 Jun 2018 01:28:01 -0600 Subject: [PATCH] Remove unneeded PyErr_Occurred() check in os_lseek_impl() (GH-7557) This call became unneeded after the posix module was converted to the Argument Clinic in 2f93635d342a500053e97c9c7c30f1eaf11fc3ac and should have been removed as part of that change. --- Modules/posixmodule.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a9b3917188..247af1b6ce 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8238,9 +8238,6 @@ os_lseek_impl(PyObject *module, int fd, Py_off_t position, int how) } #endif /* SEEK_END */ - if (PyErr_Occurred()) - return -1; - Py_BEGIN_ALLOW_THREADS _Py_BEGIN_SUPPRESS_IPH #ifdef MS_WINDOWS -- 2.40.0