[Sugar-devel] [PATCH][Chat] cjson --> json sl#3142

Rafael Ortiz rafael at activitycentral.com
Thu Aug 9 14:32:40 EDT 2012


Patch to change cjson for json, acording to SL#3142
---
 activity.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/activity.py b/activity.py
index 7fa835c..6dcb10f 100644
--- a/activity.py
+++ b/activity.py
@@ -17,7 +17,7 @@
 from gi.repository import Gtk
 from gi.repository import Gdk
 import logging
-import cjson
+import json
 import math
 from gettext import gettext as _
 
@@ -164,7 +164,7 @@ class Chat(activity.Activity):
         """Handle a private invite from a non-sugar3 XMPP client."""
         if self.shared_activity or self.text_channel:
             return
-        bus_name, connection, channel = cjson.decode(tp_channel)
+        bus_name, connection, channel = json.loads(tp_channel)
         logger.debug('GOT XMPP: %s %s %s', bus_name, connection,channel)
         Connection( bus_name, connection, ready_handler=lambda conn: \
         self._one_to_one_connection_ready_cb(bus_name, channel, conn))
-- 
1.7.9.5



More information about the Sugar-devel mailing list