Apply Python 3 futurize transform libmodernize.fixes.fix_filter.

This commit is contained in:
Tim Abbott 2015-11-01 08:14:31 -08:00
parent abd939f16d
commit ec5103191e

View file

@ -65,8 +65,8 @@ def generate_support_stats():
if True: if True:
words = word_count.keys() words = word_count.keys()
words = filter(lambda w: word_count[w] >= 10, words) words = [w for w in words if word_count[w] >= 10]
words = filter(lambda w: len(w) >= 5, words) words = [w for w in words if len(w) >= 5]
words = sorted(words, key=lambda w: word_count[w], reverse=True) words = sorted(words, key=lambda w: word_count[w], reverse=True)
for word in words: for word in words:
print(word, word_count[word]) print(word, word_count[word])