summaryrefslogtreecommitdiff
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 21:16:11 +0200
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 21:16:11 +0200
commitf70e1ca0fc30426d12aa8fc6684764ee11a66777 (patch)
treeadde4b05e331c51ea39f603aff8171ca1527cef6 /Lib/asyncore.py
parent3f5d48bead8e937aef6f94a3211406270c1a5f8f (diff)
downloadcpython-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/asyncore.py')
-rw-r--r--Lib/asyncore.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 68efd45f85..5578ddab59 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -141,10 +141,7 @@ def poll(timeout=0.0, map=None):
time.sleep(timeout)
return
- try:
- r, w, e = select.select(r, w, e, timeout)
- except InterruptedError:
- return
+ r, w, e = select.select(r, w, e, timeout)
for fd in r:
obj = map.get(fd)