diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-05-24 18:40:52 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-05-27 16:39:38 (GMT) |
commit | 3f512b9234b8b2b16b3a44446bdc3d5d903ad3b7 (patch) | |
tree | 8d97c65548a89a876aa069fd9b93a890760d6656 | |
parent | 46d1ed26ebe97a7004cb3923a6e87196453124b9 (diff) |
Replace use of simplejson - SL #4487
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r-- | speechtoolbar.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/speechtoolbar.py b/speechtoolbar.py index 3ac3cb8..d6444d3 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 _ from gi.repository import Gtk @@ -95,7 +95,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() @@ -124,7 +124,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() |