mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32593: Drop FreeBSD 9 and older support (#5232)
Drop support of FreeBSD 9 and older.
This commit is contained in:
parent
b0a7a037b8
commit
13ff24582c
18 changed files with 23 additions and 108 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue