From c7fe75e3044cfbba505134a4f8c87f0f38c76436 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 25 Dec 2008 10:22:11 +0000 Subject: Use cjson instead of simple-json python-cjson is listed as a system module dep of sugar, but simple-json is not. --- diff --git a/pippy_app.py b/pippy_app.py index 7be5cf2..215f349 100644 --- a/pippy_app.py +++ b/pippy_app.py @@ -20,7 +20,7 @@ import gtk import pango import logging import re -import simplejson +import cjson import time from datetime import datetime from activity import ViewSourceActivity @@ -98,7 +98,7 @@ class Chat(ViewSourceActivity): """Handle a private invite from a non-Sugar XMPP client.""" if self.shared_activity or self.text_channel: return - bus_name, connection, channel = simplejson.loads(tp_channel) + bus_name, connection, channel = cjson.decode(tp_channel) logger.debug('GOT XMPP: %s %s %s', bus_name, connection, channel) conn = Connection( -- cgit v0.9.1