Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/face.py
diff options
context:
space:
mode:
authorPootle daemon <pootle@pootle.sugarlabs.org>2012-11-08 05:30:57 (GMT)
committer Pootle daemon <pootle@pootle.sugarlabs.org>2012-11-08 05:30:57 (GMT)
commitfa6c29144a349ca41f2091b5bb0c2cde775ff563 (patch)
treee6f6c0fd3b42327a5c586cf08fc154d74599ce82 /face.py
parent92acedc8e1b78aba8eb83784dcce5ba0b8e9239e (diff)
parent1abfd34088c15e16b61357211581d7298953b314 (diff)
Merge branch 'master' of git.sugarlabs.org:speak/mainline
Diffstat (limited to 'face.py')
-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']