diff skaapsteker/gamestate.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 aa01ca54dce2
children 0675f390653c
line wrap: on
line diff
--- a/skaapsteker/gamestate.py	Mon Apr 11 08:57:24 2011 +0200
+++ b/skaapsteker/gamestate.py	Mon Apr 11 23:54:56 2011 +0200
@@ -1,5 +1,9 @@
+try:
+    import json
+except:
+    import simplejson as json
+
 import os
-import json
 
 from . import data
 from . import options