From db5208b41f8a505f68ddbccb34dca206df9ca77e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 27 Jan 2013 17:13:18 -0600 Subject: make gbz80disasm work with python2.6 again There was an incompatible change to the json module api between py26 and py27, causing gbz80disasm to not work with py26. The fix is to simply alias the new loads method to the old read function. A possibly better plan might be to not support py26 at all. --- extras/crystal.py | 1 + 1 file changed, 1 insertion(+) (limited to 'extras/crystal.py') diff --git a/extras/crystal.py b/extras/crystal.py index 4353ad560..6c70f642c 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -13,6 +13,7 @@ import random # for capwords import string +# for python2.6 if not hasattr(json, "dumps"): json.dumps = json.write -- cgit v1.2.3