mercurial/mail.py
changeset 50276 1c7453f2bb57
parent 49051 1d6c6ad645e1
child 50277 174290adfc4a
equal deleted inserted replaced
50275:29d7a5a8b8c6 50276:1c7453f2bb57
    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: