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.
 
 
 

12 lines
266 B

  1. """ Prints out all possibly-bad words in a wordlist """
  2. import sys
  3. import wordfilter
  4. for fname in sys.argv[1:]:
  5. with open(fname, 'r') as afile:
  6. for line in afile:
  7. if wordfilter.blacklisted(line):
  8. print(fname, line.strip())