]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Rename the getaddrinfo parameter "socktype" to "type" [#1231]
authorBob Halley <halley@dnspython.org>
Wed, 8 Oct 2025 18:21:54 +0000 (11:21 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 8 Oct 2025 18:21:54 +0000 (11:21 -0700)
commit1145a342bd9bd833e4c76f9ad3fadf37416ce3b7
tree09bb129a20d17539416f38f429b422a7925c535d
parent8000bc5729ddfc25ed4af797f97d720200384be8
Rename the getaddrinfo parameter "socktype" to "type" [#1231]

The socket type parameter to socket.getaddrinfo used to be called "socktype" in
Python 2, but was renamed to "type" in Python 3.  We applied this change on
the python3 branch almost a decade ago, but it was lost in the "single code base,
only Python 3" update, also quite some time ago.  It is now renamed to "type"
(again) so it matches the Python 3 code it is overriding.
dns/resolver.py
doc/whatsnew.rst
tests/test_resolver_override.py