web/views/cwuser.py
changeset 7894 ad0eeb0f7a8d
parent 7807 f2a5805615f8
parent 7879 9aae456abab5
child 7990 a673d1d9a738
--- a/web/views/cwuser.py	Thu Sep 29 14:07:37 2011 +0200
+++ b/web/views/cwuser.py	Thu Sep 29 14:47:04 2011 +0200
@@ -20,7 +20,7 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
-import hashlib
+from hashlib import sha1 # pylint: disable=E0611
 
 from logilab.mtconverter import xml_escape
 
@@ -86,7 +86,7 @@
         emailaddr = entity.cw_adapt_to('IEmailable').get_email()
         if emailaddr:
             self.w(u'<foaf:mbox_sha1sum>%s</foaf:mbox_sha1sum>\n'
-                   % hashlib.sha1(emailaddr.encode('utf-8')).hexdigest())
+                   % sha1(emailaddr.encode('utf-8')).hexdigest())
         self.w(u'</foaf:Person>\n')