Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lessonbuilder.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-08-06 16:31:00 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-08-06 16:31:00 (GMT)
commit041f65ae6dcdc22d235c0ef7fe05b53334a4d1ff (patch)
tree1a73e0c0c697e36d0420f309718bd6c6615f0460 /lessonbuilder.py
parent535b9dd9c33b0f6daf76042bf183aa94d8afc053 (diff)
Adopt to json changes in python-2.6 #711
Diffstat (limited to 'lessonbuilder.py')
-rwxr-xr-xlessonbuilder.py4
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)