web/request.py
branchstable
changeset 5777 941038164cf5
parent 5770 9e4f8db66962
child 5811 e77cea9721e7
child 5884 a0eb685dfe7a
--- a/web/request.py	Thu Jun 17 16:16:08 2010 +0200
+++ b/web/request.py	Thu Jun 17 16:17:09 2010 +0200
@@ -20,7 +20,12 @@
 __docformat__ = "restructuredtext en"
 
 import Cookie
-import hashlib
+try:
+    import hashlib
+    hashlib.hash
+except AttributeError:
+    # python 2.5 ...
+    import sha as hashlib
 import time
 import random
 import base64