branch | stable |
changeset 5389 | 809d3b5b3d31 |
parent 5377 | 84d14ddfae13 |
child 5408 | 120db445c179 |
child 5421 | 8167de96c523 |
--- a/web/_exceptions.py Fri Apr 23 14:55:10 2010 +0200 +++ b/web/_exceptions.py Fri Apr 23 12:19:54 2010 +0200 @@ -57,8 +57,5 @@ self.reason = reason def dumps(self): - try: - from json import dumps - except ImportError: - from simplejson import dumps - return dumps({'reason': self.reason}) + from cubicweb.web import json + return json.dumps({'reason': self.reason})