STINNER Victor added the comment: > However I think that in theory SSLSocket.server_hostname could be a bytes, if > a bytes was passed into the constructor.
newPySSLSocket() expects a char* string and use PyUnicode_Decode() to decode bytes. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com