web/views/cwuser.py
branchstable
changeset 7879 9aae456abab5
parent 7806 aa30c665bd06
child 7894 ad0eeb0f7a8d
--- a/web/views/cwuser.py	Tue Sep 27 16:04:30 2011 +0200
+++ b/web/views/cwuser.py	Wed Sep 28 09:27:42 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')