diff -r 3941e7063d03 -r a1801ee97840 mercurial/mail.py --- a/mercurial/mail.py Thu Oct 10 21:00:13 2019 +0200 +++ b/mercurial/mail.py Thu Oct 10 21:05:34 2019 +0200 @@ -52,7 +52,7 @@ if not self.has_extn("starttls"): msg = b"STARTTLS extension not supported by server" raise smtplib.SMTPException(msg) - (resp, reply) = self.docmd(b"STARTTLS") + (resp, reply) = self.docmd("STARTTLS") if resp == 220: self.sock = sslutil.wrapsocket( self.sock,