Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-08-31 12:45:08 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2010-08-31 12:45:08 (GMT)
commitf77d0b1a41494dfcbfb0a5f583161cd673310311 (patch)
tree04ef5a9bead76e98f94dafeb35f95774b32ccb43
parent8432e0d748f9070c5bf2bcb640332f1bb2ab0993 (diff)
json compatibility fix for Fedora 9 (Sugar 0.82)
-rw-r--r--restore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/restore.py b/restore.py
index 26183a0..67877ce 100644
--- a/restore.py
+++ b/restore.py
@@ -46,7 +46,8 @@ import sugar.logger
try:
import json
-except ImportError:
+ json.dumps
+except (ImportError, AttributeError):
import simplejson as json