mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Adding compatibility for newer versions of json.
This commit is contained in:
parent
8dc750b1e4
commit
1d17d3e810
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user