With open, not open

This commit is contained in:
mmcwilliams 2024-06-28 09:37:28 -04:00
parent ff090f2744
commit 2b90d9a495
1 changed files with 4 additions and 6 deletions

View File

@ -9,12 +9,10 @@ import geohash
def get_words(fname):
lines = open(fname)
with open(fname) as lines :
words = []
for word in lines:
words.append(word.strip())
lines.close()
random.seed(634634)
random.shuffle(words)
words = words[:2**15]