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.
 
 
 

15 rivejä
349 B

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