From 61b2e4062d6773648ab66b15aa22f44e6d7821ab Mon Sep 17 00:00:00 2001 From: Rob Speer Date: Fri, 8 Sep 2017 16:52:06 -0400 Subject: [PATCH] remove unnecessary enumeration from top_n.py --- scripts/top_n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/top_n.py b/scripts/top_n.py index 8df1b38..7b3b3ce 100644 --- a/scripts/top_n.py +++ b/scripts/top_n.py @@ -10,5 +10,5 @@ N = 1000 for lang in sorted(wordfreq.available_languages()): - for (i, word) in enumerate(wordfreq.top_n_list(lang, 1000)): + for word in wordfreq.top_n_list(lang, 1000): print('{}\t{}'.format(lang, word))