##// 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 self.does_esmtp = 0
70 self.does_esmtp = 0
71 return (resp, reply)
71 return (resp, reply)
72
72
73 if util.safehasattr(smtplib.SMTP, '_get_socket'):
74 class SMTPS(smtplib.SMTP):
73 class SMTPS(smtplib.SMTP):
75 '''Derived class to verify the peer certificate for SMTPS.
74 '''Derived class to verify the peer certificate for SMTPS.
76
75
@@ -92,9 +91,6 if util.safehasattr(smtplib.SMTP, '_get_
92 **self._sslkwargs)
91 **self._sslkwargs)
93 self.file = smtplib.SSLFakeFile(new_socket)
92 self.file = smtplib.SSLFakeFile(new_socket)
94 return new_socket
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 def _smtp(ui):
95 def _smtp(ui):
100 '''build an smtp connection and return a function to send mail'''
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