summaryrefslogtreecommitdiffstats
path: root/Doc/includes/email-alternative.py
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 12:49:10 (GMT)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 12:49:10 (GMT)
commita2dce5a9eec9fca19a374bd4713cb0bc8e796e2e (patch)
treef06c711e8ccd4a936142d9473f094d6670223f74 /Doc/includes/email-alternative.py
parentd567c38ef2b6e5850a7d5941eceb639c25b24b39 (diff)
downloadcpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.zip
cpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.tar.gz
cpython-a2dce5a9eec9fca19a374bd4713cb0bc8e796e2e.tar.bz2
Issue #4239: adjust email examples not to use connect() and terminate with
quit() and not close().
Diffstat (limited to 'Doc/includes/email-alternative.py')
-rw-r--r--Doc/includes/email-alternative.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/email-alternative.py b/Doc/includes/email-alternative.py
index d941323..82e3ffa 100644
--- a/Doc/includes/email-alternative.py
+++ b/Doc/includes/email-alternative.py
@@ -45,4 +45,4 @@ s = smtplib.SMTP('localhost')
# sendmail function takes 3 arguments: sender's address, recipient's address
# and message to send - here it is sent as one string.
s.sendmail(me, you, msg.as_string())
-s.close()
+s.quit()