equal
deleted
inserted
replaced
52 def __init__(self, ui, host=None, **kwargs): |
52 def __init__(self, ui, host=None, **kwargs): |
53 smtplib.SMTP.__init__(self, **kwargs) |
53 smtplib.SMTP.__init__(self, **kwargs) |
54 self._ui = ui |
54 self._ui = ui |
55 self._host = host |
55 self._host = host |
56 |
56 |
57 def starttls(self, keyfile=None, certfile=None): |
57 def starttls(self, keyfile=None, certfile=None, context=None): |
58 if not self.has_extn("starttls"): |
58 if not self.has_extn("starttls"): |
59 msg = b"STARTTLS extension not supported by server" |
59 msg = b"STARTTLS extension not supported by server" |
60 raise smtplib.SMTPException(msg) |
60 raise smtplib.SMTPException(msg) |
61 (resp, reply) = self.docmd("STARTTLS") |
61 (resp, reply) = self.docmd("STARTTLS") |
62 if resp == 220: |
62 if resp == 220: |