From f77d0b1a41494dfcbfb0a5f583161cd673310311 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Tue, 31 Aug 2010 12:45:08 +0000 Subject: json compatibility fix for Fedora 9 (Sugar 0.82) --- 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 -- cgit v0.9.1