From 47ee662e24005ec16fee20b2d088c7409aa5c8fc Mon Sep 17 00:00:00 2001 From: Andrew Lin Date: Thu, 9 Jul 2015 15:50:44 -0400 Subject: [PATCH] Remove an unused temporary. --- wordfreq/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wordfreq/__init__.py b/wordfreq/__init__.py index 30c7342..a5ac0ec 100644 --- a/wordfreq/__init__.py +++ b/wordfreq/__init__.py @@ -306,8 +306,7 @@ def random_words(lang='en', wordlist='combined', nwords=5, bits_per_word=12, "There aren't enough words in the wordlist to provide %d bits of " "entropy per word." % bits_per_word ) - selected = [random.choice(choices) for i in range(nwords)] - return ' '.join(selected) + return ' '.join([random.choice(choices) for i in range(nwords)]) def random_ascii_words(lang='en', wordlist='combined', nwords=5,