##// END OF EJS Templates
py3: call SMTP.has_extn() with an str...
Denis Laxalde -
r43439:3941e706 default
parent child Browse files
Show More
@@ -49,7 +49,7 class STARTTLS(smtplib.SMTP):
49 self._host = host
49 self._host = host
50
50
51 def starttls(self, keyfile=None, certfile=None):
51 def starttls(self, keyfile=None, certfile=None):
52 if not self.has_extn(b"starttls"):
52 if not self.has_extn("starttls"):
53 msg = b"STARTTLS extension not supported by server"
53 msg = b"STARTTLS extension not supported by server"
54 raise smtplib.SMTPException(msg)
54 raise smtplib.SMTPException(msg)
55 (resp, reply) = self.docmd(b"STARTTLS")
55 (resp, reply) = self.docmd(b"STARTTLS")
General Comments 0
You need to be logged in to leave comments. Login now