• Victor Stinner's avatar
    Issue #24684: socket.socket.getaddrinfo() now calls · ec1a498a
    Victor Stinner yazdı
    PyUnicode_AsEncodedString() instead of calling the encode() method of the
    host, to handle correctly custom 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.
    ec1a498a
socketmodule.c 198 KB