bpo-32793: Fix a duplicate debug message in smtplib (GH-15341)
_get_socket() already prints a debug message for the host and port. https://bugs.python.org/issue32793 Automerge-Triggered-By: @maxking
This commit is contained in:
parent
9e66aba999
commit
46a7564578
|
@ -333,8 +333,6 @@ class SMTP:
|
|||
raise OSError("nonnumeric port")
|
||||
if not port:
|
||||
port = self.default_port
|
||||
if self.debuglevel > 0:
|
||||
self._print_debug('connect:', (host, port))
|
||||
sys.audit("smtplib.connect", self, host, port)
|
||||
self.sock = self._get_socket(host, port, self.timeout)
|
||||
self.file = None
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix a duplicated debug message when :meth:`smtplib.SMTP.connect` is called.
|
Loading…
Reference in New Issue