mail.py
changeset 8056 8909800a8c51
parent 7879 9aae456abab5
child 8599 4fabc81cd924
--- a/mail.py	Fri Nov 04 13:03:52 2011 +0100
+++ b/mail.py	Fri Nov 04 13:03:56 2011 +0100
@@ -25,11 +25,7 @@
 from email.mime.text import MIMEText
 from email.mime.image import MIMEImage
 from email.header import Header
-try:
-    from socket import gethostname
-except ImportError:
-    def gethostname(): # gae
-        return 'XXX'
+from socket import gethostname
 
 from cubicweb.view import EntityView
 from cubicweb.entity import Entity