diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-30 21:16:11 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-30 21:16:11 +0200 |
commit | f70e1ca0fc30426d12aa8fc6684764ee11a66777 (patch) | |
tree | adde4b05e331c51ea39f603aff8171ca1527cef6 /Lib/selectors.py | |
parent | 3f5d48bead8e937aef6f94a3211406270c1a5f8f (diff) | |
download | cpython-git-f70e1ca0fc30426d12aa8fc6684764ee11a66777.tar.gz |
Issue #23485: select.select() is now retried automatically with the recomputed
timeout when interrupted by a signal, except if the signal handler raises an
exception. This change is part of the PEP 475.
The asyncore and selectors module doesn't catch the InterruptedError exception
anymore when calling select.select(), since this function should not raise
InterruptedError anymore.
Diffstat (limited to 'Lib/selectors.py')
-rw-r--r-- | Lib/selectors.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/selectors.py b/Lib/selectors.py index 6d569c30ad..4f2a377120 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -310,10 +310,7 @@ class SelectSelector(_BaseSelectorImpl): def select(self, timeout=None): timeout = None if timeout is None else max(timeout, 0) ready = [] - try: - r, w, _ = self._select(self._readers, self._writers, [], timeout) - except InterruptedError: - return ready + r, w, _ = self._select(self._readers, self._writers, [], timeout) r = set(r) w = set(w) for fd in r | w: |