web/__init__.py
branchstable
changeset 5377 84d14ddfae13
parent 4252 6c4f109c2b03
child 5389 809d3b5b3d31
--- a/web/__init__.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/web/__init__.py	Thu Apr 22 19:48:04 2010 +0000
@@ -10,7 +10,10 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
-from simplejson import dumps
+try:
+    from json import dumps
+except ImportError:
+    from simplejson import dumps
 from urllib import quote as urlquote
 
 from logilab.common.deprecation import deprecated