mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-10-01 05:46:43 -05:00
Adding compatibility for newer versions of json.
original-commit-id: 1d17d3e8104606da398becc8430d02aba5eea06b
This commit is contained in:
@@ -24,6 +24,10 @@ if not hasattr(unittest.TestCase, 'setUpClass'):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user