equal
deleted
inserted
replaced
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 |