view.py
branchstable
changeset 5377 84d14ddfae13
parent 4702 d9e51820d0c2
child 5389 809d3b5b3d31
--- a/view.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/view.py	Thu Apr 22 19:48:04 2010 +0000
@@ -12,7 +12,10 @@
 from cStringIO import StringIO
 from warnings import warn
 
-from simplejson import dumps
+try:
+    from json import dumps
+except ImportError:
+    from simplejson import dumps
 
 from logilab.common.deprecation import deprecated
 from logilab.mtconverter import xml_escape