web/views/formrenderers.py
branchstable
changeset 5377 84d14ddfae13
parent 5368 d321e4b62a10
child 5389 809d3b5b3d31
--- a/web/views/formrenderers.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/web/views/formrenderers.py	Thu Apr 22 19:48:04 2010 +0000
@@ -25,7 +25,10 @@
 from logilab.common import dictattr
 from logilab.mtconverter import xml_escape
 
-from simplejson import dumps
+try:
+    from json import dumps
+except ImportError:
+    from simplejson import dumps
 
 from cubicweb import tags
 from cubicweb.appobject import AppObject