]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Construct socket.gaierror with an errno and a string, as doing just the
authorBob Halley <halley@dnspython.org>
Thu, 18 Jun 2020 14:20:50 +0000 (07:20 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 18 Jun 2020 14:20:50 +0000 (07:20 -0700)
commitb9bea7f640eeef39422fe239b6932befb526d536
tree397f4300f6f5df5bb67cca858882477659cf88c2
parent819046d299067362b237e1e6ab4292c5b873c546
Construct socket.gaierror with an errno and a string, as doing just the
errno doesn't cause the errno field in the exception to be set, and thus
our exceptions were different and less useful than the stock ones.

Adjust gethostbyaddr() to filter addresses like the system one does.
dns/resolver.py