mail: add a missing argument to properly override starttls
authorMatt Harbison <matt_harbison@yahoo.com>
Wed, 01 Mar 2023 12:37:05 -0500
changeset 50376 1c7453f2bb57
parent 50375 29d7a5a8b8c6
child 50377 174290adfc4a
mail: add a missing argument to properly override starttls I didn't look into when this changed, but it was flagged by PyCharm.
mercurial/mail.py
--- a/mercurial/mail.py	Wed Mar 01 11:53:31 2023 -0500
+++ b/mercurial/mail.py	Wed Mar 01 12:37:05 2023 -0500
@@ -54,7 +54,7 @@
         self._ui = ui
         self._host = host
 
-    def starttls(self, keyfile=None, certfile=None):
+    def starttls(self, keyfile=None, certfile=None, context=None):
         if not self.has_extn("starttls"):
             msg = b"STARTTLS extension not supported by server"
             raise smtplib.SMTPException(msg)