mail: unbyteify the SMTPException message
This is a subclass of OSError, which wants str instead of bytes.
--- a/mercurial/mail.py Wed Mar 01 12:37:05 2023 -0500
+++ b/mercurial/mail.py Wed Mar 01 12:38:36 2023 -0500
@@ -56,7 +56,7 @@
def starttls(self, keyfile=None, certfile=None, context=None):
if not self.has_extn("starttls"):
- msg = b"STARTTLS extension not supported by server"
+ msg = "STARTTLS extension not supported by server"
raise smtplib.SMTPException(msg)
(resp, reply) = self.docmd("STARTTLS")
if resp == 220: