Move to cjson and drop pyjson and simplejson
This commit is contained in:
parent
8fbf7f1f26
commit
bcc24a43e7
@ -55,7 +55,7 @@ import traceback
|
|||||||
import gtk, gobject
|
import gtk, gobject
|
||||||
import dbus
|
import dbus
|
||||||
import dbus.service
|
import dbus.service
|
||||||
import json
|
import cjson
|
||||||
|
|
||||||
from sugar import util
|
from sugar import util
|
||||||
from sugar.presence import presenceservice
|
from sugar.presence import presenceservice
|
||||||
@ -776,8 +776,8 @@ class Activity(Window, gtk.Container):
|
|||||||
|
|
||||||
buddies_dict = self._get_buddies()
|
buddies_dict = self._get_buddies()
|
||||||
if buddies_dict:
|
if buddies_dict:
|
||||||
self.metadata['buddies_id'] = json.write(buddies_dict.keys())
|
self.metadata['buddies_id'] = cjson.encode(buddies_dict.keys())
|
||||||
self.metadata['buddies'] = json.write(self._get_buddies())
|
self.metadata['buddies'] = cjson.encode(self._get_buddies())
|
||||||
|
|
||||||
preview = self._get_preview()
|
preview = self._get_preview()
|
||||||
if self._preview:
|
if self._preview:
|
||||||
|
Loading…
Reference in New Issue
Block a user