[Zope-CVS] CVS: Packages/TestScripts - mailer.py:1.3
Fred L. Drake, Jr.
fred@zope.com
Wed, 26 Feb 2003 15:08:47 -0500
Update of /cvs-repository/Packages/TestScripts
In directory cvs.zope.org:/tmp/cvs-serv14101
Modified Files:
mailer.py
Log Message:
- remove unused import
- normalize whitespace
=== Packages/TestScripts/mailer.py 1.2 => 1.3 ===
--- Packages/TestScripts/mailer.py:1.2 Thu Mar 7 09:49:20 2002
+++ Packages/TestScripts/mailer.py Wed Feb 26 15:08:46 2003
@@ -9,7 +9,6 @@
from smtplib import SMTP
from rfc822 import Message
from StringIO import StringIO
-from string import join
template = """From: %(from)s
To: %(to)s
@@ -29,10 +28,10 @@
from_address - the from address to set on the message. If ommitted, 'address'
will be used in its place.
"""
-
+
if from_address is None:
from_address = address
-
+
message = template % {'from':from_address,
'to':address,
'subject':subject,