##// 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 49 self._host = host
50 50
51 51 def starttls(self, keyfile=None, certfile=None):
52 if not self.has_extn(b"starttls"):
52 if not self.has_extn("starttls"):
53 53 msg = b"STARTTLS extension not supported by server"
54 54 raise smtplib.SMTPException(msg)
55 55 (resp, reply) = self.docmd(b"STARTTLS")
General Comments 0
You need to be logged in to leave comments. Login now