branch | stable |
changeset 5377 | 84d14ddfae13 |
parent 5312 | d2dbba898a96 |
child 5385 | b6e250dd7a7d |
child 5421 | 8167de96c523 |
--- a/web/views/tableview.py Thu Apr 22 19:37:56 2010 +0000 +++ b/web/views/tableview.py Thu Apr 22 19:48:04 2010 +0000 @@ -8,7 +8,10 @@ """ __docformat__ = "restructuredtext en" -from simplejson import dumps +try: + from json import dumps +except ImportError: + from simplejson import dumps from logilab.mtconverter import xml_escape