You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 rivejä
367 B

""" Prints out all possibly-bad words in a wordlist """
import sys
import wordfilter
if __name__ == '__main__':
wfilter = wordfilter.Wordfilter()
for fname in sys.argv[1:]:
with open(fname, 'r', encoding='utf-8') as afile:
for line in afile:
if wfilter.blacklisted(line):
print(fname, line.strip())