web/views/formrenderers.py
branchstable
changeset 5389 809d3b5b3d31
parent 5377 84d14ddfae13
child 5405 c03a9792e53a
--- a/web/views/formrenderers.py	Fri Apr 23 14:55:10 2010 +0200
+++ b/web/views/formrenderers.py	Fri Apr 23 12:19:54 2010 +0200
@@ -25,15 +25,10 @@
 from logilab.common import dictattr
 from logilab.mtconverter import xml_escape
 
-try:
-    from json import dumps
-except ImportError:
-    from simplejson import dumps
-
 from cubicweb import tags
 from cubicweb.appobject import AppObject
 from cubicweb.selectors import implements, yes
-from cubicweb.web import eid_param, formwidgets as fwdgs
+from cubicweb.web import dumps, eid_param, formwidgets as fwdgs
 
 
 def checkbox(name, value, attrs='', checked=None):