more ironing in the corner of that 'types' modules
[plcapi.git] / PLC / sendmail.py
index a5f0c5e..dbaeaad 100644 (file)
@@ -1,7 +1,6 @@
 import os
 import sys
 import pprint
-from types import StringTypes
 from email.MIMEText import MIMEText
 from email.Header import Header
 from smtplib import SMTP
@@ -96,4 +95,4 @@ def sendmail(api, To, Subject, Body, From = None, Cc = None, Bcc = None):
     s.close()
 
     if rejected:
-        raise PLCAPIError, "Error sending message to " + ", ".join(rejected.keys())
+        raise PLCAPIError("Error sending message to " + ", ".join(list(rejected.keys())))