Index: /main/waeup.kofa/trunk/src/waeup/kofa/smtp.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/smtp.py	(revision 11583)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/smtp.py	(revision 11584)
@@ -1,5 +1,5 @@
 ## $Id$
 ##
-## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
+## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -53,4 +53,5 @@
 from waeup.kofa.interfaces import IMailService
 
+
 class DefaultMailService(grok.GlobalUtility):
     """Returns a :class:`zope.sendmail.IMailDelivery`.
@@ -69,4 +70,5 @@
             name = getattr(config, 'smtp_mailer', name)
         return getUtility(IMailDelivery, name=name)
+
 
 class FakeSMTPDelivery(grok.GlobalUtility):
@@ -92,4 +94,5 @@
 CHARSETS = ('US-ASCII', 'ISO-8859-1', 'UTF-8')
 
+
 def encode_header_item(item):
     """Turns `item`, a string into an SMTP header part string.
@@ -104,5 +107,6 @@
     if not isinstance(item, unicode):
         item = unicode(item, 'utf-8')
-    return str(Header(item, 'iso-8859-1')) # try ascii, then latin1, then utf-8
+    return str(Header(item, 'iso-8859-1'))  # try ascii, then latin1, utf-8
+
 
 def encode_address(addr, name=u''):
@@ -127,4 +131,5 @@
     return formataddr((name, addr))
 
+
 def encode_body(text):
     """Build MIME message part from text.
@@ -139,13 +144,14 @@
     if not isinstance(text, unicode):
         text = unicode(text, 'utf-8')
-    charset = CHARSETS[-1] # fallback
+    charset = CHARSETS[-1]  # fallback
     for charset in CHARSETS:
         try:
             text = text.encode(charset)
         except UnicodeError:
-            pass # try next encoding
+            pass  # try next encoding
         else:
             break
     return MIMEText(text, 'plain', charset)
+
 
 def send_mail(from_name, from_addr, rcpt_name, rcpt_addrs,
@@ -154,5 +160,5 @@
     """
     # format message
-    rcpt_addrs = rcpt_addrs.replace(' ','').split(',')
+    rcpt_addrs = rcpt_addrs.replace(' ', '').split(',')
     body_to = ''
     for email in rcpt_addrs:
