diff options
author | Manuel Kaufmann <humitos@gmail.com> | 2012-08-09 13:22:12 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-08-13 18:46:56 (GMT) |
commit | fde52383c637b1d5648d7550a29bb9b1215e896c (patch) | |
tree | ecfb65718dfa6d31e8897bf3775a0be30e84f801 /readdialog.py | |
parent | 57004cae098c6daefe7d255459b0b27435a3b1dc (diff) |
Use json as included in Python SL #3142
We use json as included in Python. This will make Sugar dependent on
Python 2.6 and Python 2.7 to have the highest JSON performance.
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
Acked-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'readdialog.py')
-rw-r--r-- | readdialog.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/readdialog.py b/readdialog.py index b6366bf..4c868d5 100644 --- a/readdialog.py +++ b/readdialog.py @@ -9,7 +9,7 @@ from sugar3.graphics import style from sugar3.graphics.toolbutton import ToolButton from gettext import gettext as _ -import cjson +import json class BaseReadDialog(Gtk.Window): @@ -180,7 +180,7 @@ class BookmarkAddDialog(BookmarkDialog): content = {'title': title.decode('utf-8'), 'body': details.decode('utf-8')} self._sidebarinstance._real_add_bookmark(self._page, - cjson.encode(content)) + json.dumps(content)) self.destroy() def cancel_clicked_cb(self, widget): @@ -202,5 +202,5 @@ class BookmarkEditDialog(BookmarkDialog): 'body': details.decode('utf-8')} self._sidebarinstance.del_bookmark(self._page) self._sidebarinstance._real_add_bookmark(self._page, - cjson.encode(content)) + json.dumps(content)) self.destroy() |