Commits

C Nelson committed 2f946e8

Adding compatibility for newer versions of json.

  • Participants
  • Parent commits 6274203

Comments (0)

Files changed (1)

File extras/crystal.py

 if not hasattr(json, "dumps"):
     json.dumps = json.write
 
+# New versions of json don't have read anymore.
+if not hasattr(json, "read"):
+    json.read = json.loads
+
 #table of pointers to map groups
 #each map group contains some number of map headers
 map_group_pointer_table = 0x94000