diff -r 6cebeb1f386a -r ad0eeb0f7a8d web/views/cwuser.py --- 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'%s\n' - % hashlib.sha1(emailaddr.encode('utf-8')).hexdigest()) + % sha1(emailaddr.encode('utf-8')).hexdigest()) self.w(u'\n')