web/request.py
branchstable
changeset 7879 9aae456abab5
parent 7872 0d0b8b3a015d
child 7894 ad0eeb0f7a8d
child 8063 1b2a05c9b71c
--- a/web/request.py	Tue Sep 27 16:04:30 2011 +0200
+++ b/web/request.py	Wed Sep 28 09:27:42 2011 +0200
@@ -19,10 +19,10 @@
 
 __docformat__ = "restructuredtext en"
 
-import hashlib
 import time
 import random
 import base64
+from hashlib import sha1 # pylint: disable=E0611
 from Cookie import SimpleCookie
 from calendar import timegm
 from datetime import date
@@ -49,7 +49,7 @@
 _MARKER = object()
 
 def build_cb_uid(seed):
-    sha = hashlib.sha1('%s%s%s' % (time.time(), seed, random.random()))
+    sha = sha1('%s%s%s' % (time.time(), seed, random.random()))
     return 'cb_%s' % (sha.hexdigest())