Merge pull request #2585 from yougotwill/updatei18nKeysType_python_3

fix: make updatei18nKeysType.py work with python 3
pull/2598/head
Audric Ackermann 2 years ago committed by GitHub
commit 51e0d80c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ with open(EN_FILE,'r') as jsonFile:
data = json.load(jsonFile)
keys = data.keys()
stringToWrite += json.dumps(keys, sort_keys=True).replace(',', '\n |').replace('"', '\'')[1:-1]
stringToWrite += json.dumps(list(keys), sort_keys=True).replace(',', '\n |').replace('"', '\'')[1:-1]
stringToWrite += ';\n'

Loading…
Cancel
Save