bpo-32593: Drop FreeBSD 9 and older support (#5232)

Drop support of FreeBSD 9 and older.
This commit is contained in:
Victor Stinner 2018-01-22 18:32:50 +01:00 committed by GitHub
parent b0a7a037b8
commit 13ff24582c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 23 additions and 108 deletions

View file

@ -773,14 +773,7 @@ class TestSMTPServer(smtpd.SMTPServer):
:func:`select` or :func:`poll` call by
:func:`asyncore.loop`.
"""
try:
asyncore.loop(poll_interval, map=self._map)
except OSError:
# On FreeBSD 8, closing the server repeatably
# raises this error. We swallow it if the
# server has been closed.
if self.connected or self.accepting:
raise
asyncore.loop(poll_interval, map=self._map)
def stop(self, timeout=None):
"""