1.6.5 before python3.9

This commit is contained in:
imayushsaini 2021-10-26 23:24:50 +05:30
parent 7cb8323a5d
commit 162b04b6b5
296 changed files with 6445 additions and 491 deletions

View file

@ -15,7 +15,8 @@ if TYPE_CHECKING:
def _get_map_data(name: str) -> Dict[str, Any]:
import json
print('Would get map data', name)
with open('ba_data/data/maps/' + name + '.json') as infile:
with open('ba_data/data/maps/' + name + '.json',
encoding='utf-8') as infile:
mapdata = json.loads(infile.read())
assert isinstance(mapdata, dict)
return mapdata