Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b186af

Browse files
committed
SMTP.__init__(): Fixed minor typo in docstring.
1 parent 714d726 commit 4b186af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __init__(self, host = '', port = 0, local_hostname = None):
228228
By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised
229229
if the specified `host' doesn't respond correctly. If specified,
230230
`local_hostname` is used as the FQDN of the local host. By default,
231-
the local hostname is found using gethostbyname().
231+
the local hostname is found using socket.getfqdn().
232232
233233
"""
234234
self.esmtp_features = {}

0 commit comments

Comments
 (0)