equal
deleted
inserted
replaced
71 self.default_port = smtplib.SMTP_SSL_PORT |
71 self.default_port = smtplib.SMTP_SSL_PORT |
72 self._ui = ui |
72 self._ui = ui |
73 |
73 |
74 def _get_socket(self, host, port, timeout): |
74 def _get_socket(self, host, port, timeout): |
75 if self.debuglevel > 0: |
75 if self.debuglevel > 0: |
76 self._ui.debug('connect: %r\n' % (host, port)) |
76 self._ui.debug('connect: %r\n' % ((host, port),)) |
77 new_socket = socket.create_connection((host, port), timeout) |
77 new_socket = socket.create_connection((host, port), timeout) |
78 new_socket = sslutil.wrapsocket(new_socket, |
78 new_socket = sslutil.wrapsocket(new_socket, |
79 self.keyfile, self.certfile, |
79 self.keyfile, self.certfile, |
80 ui=self._ui, |
80 ui=self._ui, |
81 serverhostname=self._host) |
81 serverhostname=self._host) |