small fix
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Fri, 06 Feb 2009 11:05:41 +0100
changeset 557 8bb60606e5ad
parent 556 64d26324d3eb
child 558 a8887dd924f4
small fix
web/views/euser.py
--- a/web/views/euser.py	Thu Feb 05 18:09:11 2009 +0100
+++ b/web/views/euser.py	Fri Feb 06 11:05:41 2009 +0100
@@ -13,12 +13,15 @@
 from cubicweb.web import INTERNAL_FIELD_VALUE
 from cubicweb.web.form import EntityForm
 from cubicweb.web.views.baseviews import PrimaryView, EntityView
-   
+
+import hashlib
+
 try:
-    from hashlib import sha1 as sha
+    from hashlib import sha1
+    
+except ImportError:
+    from sha import sha as sha1
 
-except ImportError:
-    from sha import sha
 
 class EUserPrimaryView(PrimaryView):
     accepts = ('EUser',)