[PATCH] sslutil: ensure server_hostname is str for SSL APIs

Manuel Jacob me at manueljacob.de
Mon Apr 13 14:09:51 UTC 2026


On 13/04/2026 06.13, Starbuddy127 wrote:
> Hi everyone,
> This patch fixes a TypeError when using Python 3.13 (truststore on Windows),
> where server_hostname is passed as bytes to the SSL layer. Convert 
> server_hostname to str at the wrap_socket() boundary.

Hi Doby,

This patch doesn’t change anything apart from formatting.

There have been reports in the open-source ecosystem of 
machine-generated patches containing errors that wouldn’t have been sent 
if they were fully written or double-checked by humans. Therefore, 
before sending further patches, please disclose usage of any such tools 
and ensure that you fully understand the patches.

Thanks,
Manuel

> Many thanks,
> Doby
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at lists.mercurial-scm.org
> https://lists.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list