commit | deaf2cafbded0a3ce7a14952c4346604af65724a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Thu Mar 27 13:27:31 2008 +0000 |
committer | Georg Brandl <georg@python.org> | Thu Mar 27 13:27:31 2008 +0000 |
tree | a0983a781dba7ef970cf348162ec17ddd845c415 | |
parent | 6c052fd5233bf18461f18a44335fef3777da2fa6 [diff] [blame] |
#2248: return result of QUIT from quit().
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 @@ def quit(self): """Terminate the SMTP session.""" - self.docmd("quit") + res = self.docmd("quit") self.close() + return res if _have_ssl: