]> granicus.if.org Git - python/commit
#8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.
authorR. David Murray <rdmurray@bitdance.com>
Thu, 3 Jun 2010 20:19:25 +0000 (20:19 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 3 Jun 2010 20:19:25 +0000 (20:19 +0000)
commit4653fb556c5dacdbd4d8afadd2f73a6c0b394157
tree63ae428bc786c6f37d1bf9f9f4395d5b10855d2b
parent61746d580e956bc2dda7fcf230a581e463a4d186
#8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.

FreeBSD doesn't have socket.EAI_NODATA.  I rewrote the routine because
there's no easy way to conditionally include a context manager in a
with statement.  As a side benefit, instead of a stack of context
managers there's now only one.
Lib/test/test_support.py
Misc/NEWS