Issue #16704: Get rid of select.error in stdlib. Use OSError instead.

This commit is contained in:
Andrew Svetlov 2012-12-17 22:23:46 +02:00
parent 5ee29491e5
commit 6d8a122b9c
5 changed files with 8 additions and 8 deletions

View file

@ -773,7 +773,7 @@ if threading:
"""
try:
asyncore.loop(poll_interval, map=self.sockmap)
except select.error:
except OSError:
# On FreeBSD 8, closing the server repeatably
# raises this error. We swallow it if the
# server has been closed.