commit | 9a2326b362055c18aed39f0ad8b86f05898733e7 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Sep 11 12:42:13 2015 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Fri Sep 11 12:42:13 2015 +0200 |
tree | e6795ebf46249858dfb9d3dd8c1349883322cb4a | |
parent | 6f80464f4ae64c3b4dd65c641ddc9c156a23e510 [diff] |
Issue #24684: socket.socket.getaddrinfo() now calls PyUnicode_AsEncodedString() instead of calling the encode() method of the host, to handle correctly custom unicode string with an encode() method which doesn't return a byte string. The encoder of the IDNA codec is now called directly instead of calling the encode() method of the string.