Commit 46a75645 authored by Zackery Spytz's avatar Zackery Spytz Committed by Miss Islington (bot)

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
parent 9e66aba9
......@@ -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
......
Fix a duplicated debug message when :meth:`smtplib.SMTP.connect` is called.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment