diff options
author | Georg Brandl <georg@python.org> | 2008-03-27 13:27:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-27 13:27:31 (GMT) |
commit | deaf2cafbded0a3ce7a14952c4346604af65724a (patch) | |
tree | a0983a781dba7ef970cf348162ec17ddd845c415 /Lib | |
parent | 6c052fd5233bf18461f18a44335fef3777da2fa6 (diff) | |
download | cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.zip cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.gz cpython-deaf2cafbded0a3ce7a14952c4346604af65724a.tar.bz2 |
#2248: return result of QUIT from quit().
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/smtplib.py | 3 |
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: |