##// END OF EJS Templates
mail: drop python 2.5 support
timeless@mozdev.org -
r26673:ab1af5e7 default
parent child Browse files
Show More
@@ -70,7 +70,6 class STARTTLS(smtplib.SMTP):
70 70 self.does_esmtp = 0
71 71 return (resp, reply)
72 72
73 if util.safehasattr(smtplib.SMTP, '_get_socket'):
74 73 class SMTPS(smtplib.SMTP):
75 74 '''Derived class to verify the peer certificate for SMTPS.
76 75
@@ -92,9 +91,6 if util.safehasattr(smtplib.SMTP, '_get_
92 91 **self._sslkwargs)
93 92 self.file = smtplib.SSLFakeFile(new_socket)
94 93 return new_socket
95 else:
96 def SMTPS(sslkwargs, keyfile=None, certfile=None, **kwargs):
97 raise error.Abort(_('SMTPS requires Python 2.6 or later'))
98 94
99 95 def _smtp(ui):
100 96 '''build an smtp connection and return a function to send mail'''
General Comments 0
You need to be logged in to leave comments. Login now