diff options
author | Simon Schampijer <simon@schampijer.de> | 2009-08-06 16:31:00 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2009-08-06 16:31:00 (GMT) |
commit | 041f65ae6dcdc22d235c0ef7fe05b53334a4d1ff (patch) | |
tree | 1a73e0c0c697e36d0420f309718bd6c6615f0460 /lessonbuilder.py | |
parent | 535b9dd9c33b0f6daf76042bf183aa94d8afc053 (diff) |
Adopt to json changes in python-2.6 #711
Diffstat (limited to 'lessonbuilder.py')
-rwxr-xr-x | lessonbuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lessonbuilder.py b/lessonbuilder.py index fa942b7..396ac86 100755 --- a/lessonbuilder.py +++ b/lessonbuilder.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with Typing Turtle. If not, see <http://www.gnu.org/licenses/>. -import os, sys, random, simplejson, locale, re, optparse +import os, sys, random, json, locale, re, optparse from gettext import gettext as _ # For modifier constants. @@ -561,7 +561,7 @@ def main(): new_keys=options.keys, base_keys=options.base_keys, words=words, bad_words=bad_words) - text = simplejson.dumps(lesson, ensure_ascii=False, sort_keys=True, indent=4) + text = json.dumps(lesson, ensure_ascii=False, sort_keys=True, indent=4) open(options.output, 'w').write(text) |