Fix encoding setting
This commit is contained in:
parent
cee31a9fc5
commit
a8b953ae58
1 changed files with 2 additions and 2 deletions
|
@ -107,8 +107,8 @@ if len(sys.argv) < 2:
|
|||
print('Usage: {} <validation.log> [<target_directory>]'.format(sys.argv[0]))
|
||||
sys.exit(1)
|
||||
|
||||
with open(sys.argv[1], 'r') as f:
|
||||
data = {c['name']: CityData(c) for c in json.load(f, encoding='utf-8')}
|
||||
with open(sys.argv[1], 'r', encoding='utf-8') as f:
|
||||
data = {c['name']: CityData(c) for c in json.load(f)}
|
||||
|
||||
countries = {}
|
||||
continents = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue