diff --git a/scripts/create_json.py b/scripts/create_json.py index 193f028..4d8c845 100755 --- a/scripts/create_json.py +++ b/scripts/create_json.py @@ -33,8 +33,6 @@ import json words = open(sys.argv[1]) word_list = words.readlines() -json_words = {} -for count in range(len(word_list)): - json_words[word_list[count].rstrip()] = '1' +json_words = {word.rstrip(): "1" for word in word_list} print(json.dumps(json_words, indent=4))