Message228693
> +.. attribute:: SSLSocket.server_hostname
> +
> + A ``bytes`` instance (...)
>
> Ah, this is a mistake. It's actually always a str instance (on SSLObject as well).
It is indeed, I stand corrected. I was confused by the decode -> encode roundtrip that happens in _ssl.
However I think that in theory SSLSocket.server_hostname could be a bytes, if a bytes was passed into the constructor. _ssl parses this argument with the "et" format which means it will let a correctly encoded byte string through. Not sure if anybody is using this though. |
|
Date |
User |
Action |
Args |
2014-10-06 14:22:16 | geertj | set | recipients:
+ geertj, pitrou, vstinner, alex |
2014-10-06 14:22:16 | geertj | set | messageid: <1412605336.4.0.873243070179.issue22564@psf.upfronthosting.co.za> |
2014-10-06 14:22:16 | geertj | link | issue22564 messages |
2014-10-06 14:22:16 | geertj | create | |
|