diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-08-02 04:10:36 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-08-02 04:10:36 (GMT) |
commit | a12ddbf5df887e2df0575a6fc9ec6aa771097661 (patch) | |
tree | 86921062248d39dbd09ad75c95d91f2bc0ffeec8 | |
parent | c4abfa53582570684cf3262b0ecab69e265999f5 (diff) |
Replace simplejson by json
-rwxr-xr-x | game.py | 2 | ||||
-rw-r--r-- | model.py | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/python import os import math -import simplejson as json +import json import pygame from gi.repository import Gtk @@ -1,6 +1,6 @@ import os import logging -import simplejson +import json from sugar3.activity import activity import zipfile @@ -77,7 +77,7 @@ class GameModel: data_file_name = 'data.json' f = open(os.path.join(instance_path, data_file_name), 'w') try: - simplejson.dump(self.data, f) + json.dump(self.data, f) finally: f.close() @@ -127,7 +127,7 @@ class GameModel: f = open(os.path.join(instance_path, data_file_name), 'r') try: - self.data = simplejson.load(f) + self.data = json.load(f) if not 'resources' in self.data: self.data['resources'] = [] |