From 1e889b92e478c9c5f1e9b7835854ea452853143a Mon Sep 17 00:00:00 2001
From: Rafael Ortiz <rafael@activitycentral.com>
Date: Wed, 8 Aug 2012 23:32:32 -0500
Subject: [PATCH] cjson --> json 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
|
b
|
|
17 | 17 | from gi.repository import Gtk |
18 | 18 | from gi.repository import Gdk |
19 | 19 | import logging |
20 | | import cjson |
| 20 | import json |
21 | 21 | import math |
22 | 22 | from gettext import gettext as _ |
23 | 23 | |
… |
… |
class Chat(activity.Activity): |
164 | 164 | """Handle a private invite from a non-sugar3 XMPP client.""" |
165 | 165 | if self.shared_activity or self.text_channel: |
166 | 166 | return |
167 | | bus_name, connection, channel = cjson.decode(tp_channel) |
| 167 | bus_name, connection, channel = json.loads(tp_channel) |
168 | 168 | logger.debug('GOT XMPP: %s %s %s', bus_name, connection,channel) |
169 | 169 | Connection( bus_name, connection, ready_handler=lambda conn: \ |
170 | 170 | self._one_to_one_connection_ready_cb(bus_name, channel, conn)) |