diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2012-11-08 03:19:52 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2012-11-08 03:19:52 (GMT) |
commit | 186997935ca74ece3f4b7b80f4aecf345773317a (patch) | |
tree | be307c11f66996ba003a5566fb8b59efe9575da7 /face.py | |
parent | 891c16fc8ef2c42ccb3cfb27c00a86b0e5d061cf (diff) |
more cjson leftovers
Diffstat (limited to 'face.py')
-rw-r--r-- | face.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'] |