2021-05-01 09:54:06 -07:00
|
|
|
""" Prints out all possibly-bad words in a wordlist """
|
|
|
|
|
2021-04-29 10:08:27 -07:00
|
|
|
import sys
|
|
|
|
|
2021-05-01 09:54:06 -07:00
|
|
|
import wordfilter
|
|
|
|
|
2021-05-01 18:56:14 -07:00
|
|
|
if __name__ == '__main__':
|
|
|
|
wfilter = wordfilter.Wordfilter()
|
|
|
|
|
|
|
|
for fname in sys.argv[1:]:
|
2022-06-08 10:02:13 -07:00
|
|
|
with open(fname, 'r', encoding='utf-8') as afile:
|
2021-05-01 18:56:14 -07:00
|
|
|
for line in afile:
|
|
|
|
if wfilter.blacklisted(line):
|
|
|
|
print(fname, line.strip())
|