Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--face.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/face.py b/face.py
index a3364b9..f71c043 100644
--- a/face.py
+++ b/face.py
@@ -24,7 +24,7 @@
import logging
import gtk
-import cjson
+import json
import sugar.graphics.style as style
@@ -56,7 +56,7 @@ class Status:
fft_mouth.FFTMouth : 2,
waveform_mouth.WaveformMouth : 3 }
- return cjson.encode({
+ return json.dumps({
'voice' : { 'language' : self.voice.language,
'name' : self.voice.name },
'pitch' : self.pitch,
@@ -71,7 +71,7 @@ class Status:
2: fft_mouth.FFTMouth,
3: waveform_mouth.WaveformMouth }
- data = cjson.decode(buf)
+ data = json.loads(buf)
self.voice = voice.Voice(data['voice']['language'],
data['voice']['name'])
self.pitch = data['pitch']