Fix string module error

tests
David John 8 years ago
parent d06a884df9
commit a6f714a1e9

@ -8,7 +8,6 @@ import json
import yaml import yaml
import praw import praw
import random import random
import string
from re import sub from re import sub
from datetime import datetime, timedelta from datetime import datetime, timedelta
@ -75,10 +74,10 @@ whitelist = config.get('whitelist', [])
whitelist_ids = config.get('whitelist_ids', []) whitelist_ids = config.get('whitelist_ids', [])
if whitelist: if whitelist:
whitelist = set([subr.lower() for subr in whitelist])
log.debug("Keeping messages from subreddits {subs}".format( log.debug("Keeping messages from subreddits {subs}".format(
subs=', '.join(whitelist)) subs=', '.join(whitelist))
) )
whitelist = set([string.lower(subr) for subr in whitelist])
def get_sentence(): def get_sentence():

Loading…
Cancel
Save