Apply Python 3 futurize transform libmodernize.fixes.fix_filter.
This commit is contained in:
parent
abd939f16d
commit
ec5103191e
|
@ -65,8 +65,8 @@ def generate_support_stats():
|
|||
|
||||
if True:
|
||||
words = word_count.keys()
|
||||
words = filter(lambda w: word_count[w] >= 10, words)
|
||||
words = filter(lambda w: len(w) >= 5, words)
|
||||
words = [w for w in words if word_count[w] >= 10]
|
||||
words = [w for w in words if len(w) >= 5]
|
||||
words = sorted(words, key=lambda w: word_count[w], reverse=True)
|
||||
for word in words:
|
||||
print(word, word_count[word])
|
||||
|
|
Loading…
Reference in a new issue