summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-06-10 07:28:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-06-10 07:28:01 (GMT)
commit69dccc397ad1522309f15e4d5e0afe68b782ba66 (patch)
treed87280cc9ba4b026248a9c3d15a48cc2db03003a /Modules/posixmodule.c
parent4ab4695388fb9ec03a14d93e90ce50d832a920ec (diff)
downloadcpython-69dccc397ad1522309f15e4d5e0afe68b782ba66.zip
cpython-69dccc397ad1522309f15e4d5e0afe68b782ba66.tar.gz
cpython-69dccc397ad1522309f15e4d5e0afe68b782ba66.tar.bz2
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.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a9b3917..247af1b 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