--- 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',)