[Patches] [ python-Patches-1776581 ] Minor corrections to smtplib
SourceForge.net
noreply at sourceforge.net
Fri Aug 17 23:12:13 CEST 2007
Patches item #1776581, was opened at 2007-08-17 15:52
Message generated for change (Settings changed) made by alanmcintyre
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1776581&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alan McIntyre (alanmcintyre)
>Assigned to: Facundo Batista (facundobatista)
Summary: Minor corrections to smtplib
Initial Comment:
Two minor changes:
- In SMTP.send, there is a check for self.sock, which may not exist if there has been no attempt to connect. This patch adds a check for hasattr(self, 'sock') so that such an attempt to call send() will raise the more helpful SMTPServerDisconnected instead of an AttributeError.
- The docstring for SMTP.expn is a copy of that of the verify method. This patch changes it to something more appropriate.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1776581&group_id=5470
More information about the Patches
mailing list