Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/journalentrybundle.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2009-11-23 12:36:33 (GMT)
committer Daniel Drake <dsd@laptop.org>2009-11-23 12:47:11 (GMT)
commitbd3fdd73a853d618aa5000ff5b1ce82f196c8b70 (patch)
treeef9c4b32cc06693a90200d77dc75879023fec298 /src/jarabe/journal/journalentrybundle.py
parentcff9e43527ead20b088a9bfc6bbf12b0827debfd (diff)
Switch entirely to simplejson
I misunderstood the state of affairs with the numerous json parsers. Whatever we used to have as 'json' isn't really available on Py2.6. Move to simplejson which seems to be the most functional implementation, available on both old and new setups.
Diffstat (limited to 'src/jarabe/journal/journalentrybundle.py')
-rw-r--r--src/jarabe/journal/journalentrybundle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jarabe/journal/journalentrybundle.py b/src/jarabe/journal/journalentrybundle.py
index a0bc935..74b2ac5 100644
--- a/src/jarabe/journal/journalentrybundle.py
+++ b/src/jarabe/journal/journalentrybundle.py
@@ -18,7 +18,7 @@ import os
import tempfile
import shutil
-import json
+import simplejson
import dbus
from sugar.bundle.bundle import Bundle, MalformedBundleException
@@ -75,7 +75,7 @@ class JournalEntryBundle(Bundle):
json_data = f.read()
finally:
f.close()
- return json.read(json_data)
+ return simplejson.loads(json_data)
def _read_preview(self, uid, bundle_dir):
preview_path = os.path.join(bundle_dir, 'preview', uid)