From bcc24a43e714fe1d865e98aeb0e5cdbb37ca0a9c Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 8 Oct 2008 17:30:08 +0200 Subject: [PATCH] Move to cjson and drop pyjson and simplejson --- src/sugar/activity/activity.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index b55a09d4..cee87672 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -55,7 +55,7 @@ import traceback import gtk, gobject import dbus import dbus.service -import json +import cjson from sugar import util from sugar.presence import presenceservice @@ -776,8 +776,8 @@ class Activity(Window, gtk.Container): buddies_dict = self._get_buddies() if buddies_dict: - self.metadata['buddies_id'] = json.write(buddies_dict.keys()) - self.metadata['buddies'] = json.write(self._get_buddies()) + self.metadata['buddies_id'] = cjson.encode(buddies_dict.keys()) + self.metadata['buddies'] = cjson.encode(self._get_buddies()) preview = self._get_preview() if self._preview: