Mercurial > hg
diff mercurial/posix.py @ 49302:ee4537e365c8
py3: remove retry on EINTR errno
Since the implementation of PEP 475 (Python 3.5), Python retries system calls
failing with EINTR. Therefore we don’t need the logic that retries it in Python
code.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Tue, 31 May 2022 04:11:34 +0200 |
parents | 642e31cb55f0 |
children | 53e9422a9b45 |
line wrap: on
line diff
--- a/mercurial/posix.py Tue May 31 03:39:42 2022 +0200 +++ b/mercurial/posix.py Tue May 31 04:11:34 2022 +0200 @@ -716,14 +716,7 @@ In unsupported cases, it will raise a NotImplementedError""" try: - while True: - try: - res = select.select(fds, fds, fds) - break - except select.error as inst: - if inst.args[0] == errno.EINTR: - continue - raise + res = select.select(fds, fds, fds) except ValueError: # out of range file descriptor raise NotImplementedError() return sorted(list(set(sum(res, []))))