summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-27 13:27:31 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-27 13:27:31 (GMT)
commitdeaf2cafbded0a3ce7a14952c4346604af65724a (patch)
treea0983a781dba7ef970cf348162ec17ddd845c415 /Lib
parent6c052fd5233bf18461f18a44335fef3777da2fa6 (diff)
downloadcpython-deaf2cafbded0a3ce7a14952c4346604af65724a.zip
cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.gz
cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.bz2
#2248: return result of QUIT from quit().
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/smtplib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index c1b1bec..5ac9fc3 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -726,8 +726,9 @@ class SMTP:
def quit(self):
"""Terminate the SMTP session."""
- self.docmd("quit")
+ res = self.docmd("quit")
self.close()
+ return res
if _have_ssl: