changeset 50376:1c7453f2bb57

mail: add a missing argument to properly override starttls I didn't look into when this changed, but it was flagged by PyCharm.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 01 Mar 2023 12:37:05 -0500
parents 29d7a5a8b8c6
children 174290adfc4a
files mercurial/mail.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)