# HG changeset patch # User Matt Harbison # Date 1677692316 18000 # Node ID 174290adfc4a71f3e31365c138e2266c6d4652a9 # Parent 1c7453f2bb577d353041cc9f0faf345282dbde8c mail: unbyteify the SMTPException message This is a subclass of OSError, which wants str instead of bytes. diff -r 1c7453f2bb57 -r 174290adfc4a mercurial/mail.py --- 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: