cpython: c8914dbe6ead (original) (raw)

Mercurial > cpython

changeset 84291:c8914dbe6ead 2.7

#18179: document the local_hostname parameter. Original patch by Berker Peksag. [#18179]

R David Murray rdmurray@bitdance.com
date Sun, 23 Jun 2013 16:02:34 -0400
parents 8f0adcb66633
children 9f1f83d23ec4
files Doc/library/smtplib.rst Lib/smtplib.py
diffstat 2 files changed, 15 insertions(+), 6 deletions(-)[+] [-] Doc/library/smtplib.rst 12 Lib/smtplib.py 9

line wrap: on

line diff

--- a/Doc/library/smtplib.rst +++ b/Doc/library/smtplib.rst @@ -25,7 +25,10 @@ Protocol) and :rfc:1869 (SMTP Service A :class:SMTP instance encapsulates an SMTP connection. It has methods that support a full repertoire of SMTP and ESMTP operations. If the optional host and port parameters are given, the SMTP :meth:connect method is called

--- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -240,7 +240,8 @@ class SMTP: 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,

""" @@ -762,7 +763,8 @@ if _have_ssl: """ This is a subclass derived from SMTP that connects over an SSL encrypted socket (to use this class you need a socket module that was compiled with SSL support). If host is not specified, '' (the local host) is used. If port is

@@ -797,7 +799,8 @@ class LMTP(SMTP): The LMTP protocol, which is very similar to ESMTP, is heavily based on the standard SMTP client. It's common to use Unix sockets for LMTP, so our connect() method must support that as well as a regular