]> granicus.if.org Git - python/commitdiff
Remove unneeded PyErr_Occurred() check in os_lseek_impl() (GH-7557)
authorZackery Spytz <zspytz@gmail.com>
Sun, 10 Jun 2018 07:28:01 +0000 (01:28 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 10 Jun 2018 07:28:01 +0000 (10:28 +0300)
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

index a9b3917188c697fac26011e59de683a5185c4910..247af1b6ce911e804256d187b3ee354deab16785 100644 (file)
@@ -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