web/request.py
branchstable
changeset 5377 84d14ddfae13
parent 5290 15846058378b
child 5385 b6e250dd7a7d
child 5389 809d3b5b3d31
equal deleted inserted replaced
5376:2c3f14bc2590 5377:84d14ddfae13
    14 import base64
    14 import base64
    15 from datetime import date
    15 from datetime import date
    16 from urlparse import urlsplit
    16 from urlparse import urlsplit
    17 from itertools import count
    17 from itertools import count
    18 
    18 
    19 from simplejson import dumps
    19 try:
       
    20     from json import dumps
       
    21 except ImportError:
       
    22     from simplejson import dumps
    20 
    23 
    21 from rql.utils import rqlvar_maker
    24 from rql.utils import rqlvar_maker
    22 
    25 
    23 from logilab.common.decorators import cached
    26 from logilab.common.decorators import cached
    24 from logilab.common.deprecation import deprecated
    27 from logilab.common.deprecation import deprecated