Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/speechtoolbar.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2013-05-27 18:09:07 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2013-05-27 18:09:07 (GMT)
commit038e4e1b98eef0678daeccddbaf525188c302be8 (patch)
tree2e4316161e68cdcc26e2ac34d70dc18046e8e050 /speechtoolbar.py
parent62c897bc20c5e7e1d3d24f7392e8e38fb891767a (diff)
Replace the use of simplejson by json
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'speechtoolbar.py')
-rw-r--r--speechtoolbar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/speechtoolbar.py b/speechtoolbar.py
index 1c9c291..268879a 100644
--- a/speechtoolbar.py
+++ b/speechtoolbar.py
@@ -15,7 +15,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os
-import simplejson
+import json
from gettext import gettext as _
import logging
@@ -97,7 +97,7 @@ class SpeechToolbar(Gtk.Toolbar):
if os.path.exists(data_file_name):
f = open(data_file_name, 'r')
try:
- speech_parameters = simplejson.load(f)
+ speech_parameters = json.load(f)
speech.voice = speech_parameters['voice']
finally:
f.close()
@@ -150,7 +150,7 @@ class SpeechToolbar(Gtk.Toolbar):
data_file_name = os.path.join(data_path, 'speech_params.json')
f = open(data_file_name, 'w')
try:
- simplejson.dump(speech_parameters, f)
+ json.dump(speech_parameters, f)
finally:
f.close()