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 |
|
|
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 | 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