fix: python 3.9 compat

pull/174/head
Raphaël Vinot 2020-11-24 18:47:20 +01:00
parent 7c61d1a227
commit 46fd402d43
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import json
for p in Path('../lists/').glob('*/*.json'): for p in Path('../lists/').glob('*/*.json'):
with p.open() as _f: with p.open() as _f:
warninglist = json.load(_f, encoding="utf-8") warninglist = json.load(_f)
warninglist['list'] = sorted(list(set(warninglist['list']))) warninglist['list'] = sorted(list(set(warninglist['list'])))
with p.open('w') as _f: with p.open('w') as _f: