web/component.py
branchstable
changeset 5377 84d14ddfae13
parent 4882 4a42d700c52d
child 5385 b6e250dd7a7d
child 5389 809d3b5b3d31
equal deleted inserted replaced
5376:2c3f14bc2590 5377:84d14ddfae13
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     6 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 _ = unicode
     9 _ = unicode
    10 
    10 
    11 from simplejson import dumps
    11 try:
       
    12     from json import dumps
       
    13 except ImportError:
       
    14     from simplejson import dumps
    12 
    15 
    13 from logilab.common.deprecation import class_renamed
    16 from logilab.common.deprecation import class_renamed
    14 from logilab.mtconverter import xml_escape
    17 from logilab.mtconverter import xml_escape
    15 
    18 
    16 from cubicweb import role
    19 from cubicweb import role