summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-04-13 18:37:22 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-04-13 18:37:22 (GMT)
commit2fc97e6a2d97f98d4eaeb8fcb046f88d69facebb (patch)
tree8bf8762f0437a88967e1a98cb44523a3a1a300ee /Lib/smtplib.py
parent616f2fe28ca3fdc54e4a04790ed287b845240e6c (diff)
downloadcpython-2fc97e6a2d97f98d4eaeb8fcb046f88d69facebb.zip
cpython-2fc97e6a2d97f98d4eaeb8fcb046f88d69facebb.tar.gz
cpython-2fc97e6a2d97f98d4eaeb8fcb046f88d69facebb.tar.bz2
#2118: clarify smtplib exception documentation.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 9e8bc72..a3213b3 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -237,8 +237,9 @@ class SMTP:
If specified, `host' is the name of the remote host to which to
connect. If specified, `port' specifies the port to which to connect.
- By default, smtplib.SMTP_PORT is used. An SMTPConnectError is raised
- if the specified `host' doesn't respond correctly. If specified,
+ By default, smtplib.SMTP_PORT is used. If a host is specified the
+ connect method is called, and if it returns anything other than
+ a success code an SMTPConnectError is raised. If specified,
`local_hostname` is used as the FQDN of the local host. By default,
the local hostname is found using socket.getfqdn().