web/test/unittest_views_baseviews.py
branchstable
changeset 5377 84d14ddfae13
parent 4494 ccb7fce7297b
child 5385 b6e250dd7a7d
child 5389 809d3b5b3d31
--- a/web/test/unittest_views_baseviews.py	Thu Apr 22 19:37:56 2010 +0000
+++ b/web/test/unittest_views_baseviews.py	Thu Apr 22 19:48:04 2010 +0000
@@ -5,7 +5,10 @@
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
-from simplejson import loads
+try:
+    from json import loads
+except ImportError:
+    from simplejson import loads
 
 from logilab.common.testlib import unittest_main
 from logilab.mtconverter import html_unescape