web/request.py
changeset 5811 e77cea9721e7
parent 5774 0d792bceb25d
parent 5777 941038164cf5
child 5890 141b935a38fc
equal deleted inserted replaced
5797:7183f32fad13 5811:e77cea9721e7
    18 """abstract class for http request"""
    18 """abstract class for http request"""
    19 
    19 
    20 __docformat__ = "restructuredtext en"
    20 __docformat__ = "restructuredtext en"
    21 
    21 
    22 import Cookie
    22 import Cookie
    23 import hashlib
    23 try:
       
    24     import hashlib
       
    25     hashlib.hash
       
    26 except AttributeError:
       
    27     # python 2.5 ...
       
    28     import sha as hashlib
    24 import time
    29 import time
    25 import random
    30 import random
    26 import base64
    31 import base64
    27 from datetime import date
    32 from datetime import date
    28 from urlparse import urlsplit
    33 from urlparse import urlsplit