From a12ddbf5df887e2df0575a6fc9ec6aa771097661 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Sat, 02 Aug 2014 04:10:36 +0000 Subject: Replace simplejson by json --- diff --git a/game.py b/game.py index 9a89eb5..3c9bbd0 100755 --- a/game.py +++ b/game.py @@ -1,7 +1,7 @@ #!/usr/bin/python import os import math -import simplejson as json +import json import pygame from gi.repository import Gtk diff --git a/model.py b/model.py index e2f5add..2a1b16b 100644 --- a/model.py +++ b/model.py @@ -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'] = [] -- cgit v0.9.1