(self, host, port, timeout)
| 310 | print(*args, file=sys.stderr) |
| 311 | |
| 312 | def _get_socket(self, host, port, timeout): |
| 313 | # This makes it simpler for SMTP_SSL to use the SMTP connect code |
| 314 | # and just alter the socket connection bit. |
| 315 | if timeout is not None and not timeout: |
| 316 | raise ValueError('Non-blocking socket (timeout=0) is not supported') |
| 317 | if self.debuglevel > 0: |
| 318 | self._print_debug('connect: to', (host, port), self.source_address) |
| 319 | return socket.create_connection((host, port), timeout, |
| 320 | self.source_address) |
| 321 | |
| 322 | def connect(self, host='localhost', port=0, source_address=None): |
| 323 | """Connect to a host on a given port. |
no test coverage detected