diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-12-10 09:54:59 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2008-12-10 09:54:59 (GMT) |
commit | 6f63190ded3ceea7a66a41b5a48c6c4541372def (patch) | |
tree | 9bfa7fc41d85e6772e92074619ecc0aad1f4ce91 | |
parent | 478a1aa5373be89a6c7464fe1303aa585631acea (diff) | |
download | cpython-6f63190ded3ceea7a66a41b5a48c6c4541372def.zip cpython-6f63190ded3ceea7a66a41b5a48c6c4541372def.tar.gz cpython-6f63190ded3ceea7a66a41b5a48c6c4541372def.tar.bz2 |
Issue #4302: Minor corrections to smtplib. (Backport r60975)
-rwxr-xr-x | Lib/smtplib.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 1b9739c..8651ba4 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -315,7 +315,7 @@ class SMTP: def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: print>>stderr, 'send:', repr(str) - if self.sock: + if hasattr(self, 'sock') and self.sock: try: self.sock.sendall(str) except socket.error: @@ -503,7 +503,7 @@ class SMTP: vrfy=verify def expn(self, address): - """SMTP 'verify' command -- checks for address validity.""" + """SMTP 'expn' command -- expands a mailing list.""" self.putcmd("expn", quoteaddr(address)) return self.getreply() @@ -104,6 +104,8 @@ Core and builtins Library ------- +- Issue #1776581 and #4302. Minor corrections to smtplib. + - Issue #3774: Fixed an error when create a Tkinter menu item without command and then remove it. |