web/request.py
branchstable
changeset 5377 84d14ddfae13
parent 5290 15846058378b
child 5385 b6e250dd7a7d
child 5389 809d3b5b3d31
--- a/web/request.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/web/request.py	Thu Apr 22 19:48:04 2010 +0000
@@ -16,7 +16,10 @@
 from urlparse import urlsplit
 from itertools import count
 
-from simplejson import dumps
+try:
+    from json import dumps
+except ImportError:
+    from simplejson import dumps
 
 from rql.utils import rqlvar_maker