diff skaapsteker/dialogue.py @ 612:a91b2e4400a5

Fallback to using simplejson if json does not exist (this appears to be all that is needed to add Python2.5 compatibility).
author Simon Cross <hodgestar@gmail.com>
date Mon, 11 Apr 2011 23:54:56 +0200
parents e648501c2eea
children 0675f390653c
line wrap: on
line diff
--- a/skaapsteker/dialogue.py	Mon Apr 11 08:57:24 2011 +0200
+++ b/skaapsteker/dialogue.py	Mon Apr 11 23:54:56 2011 +0200
@@ -1,4 +1,7 @@
-import json
+try:
+    import json
+except ImportError:
+    import simplejson as json
 
 from . import data
 from .engine import OpenDialog, AddSpriteEvent, ChangeScene