lastfm: open config file as w, not wb, to deal with unicode properly

master
mutantmonkey 2011-09-26 13:56:55 -04:00
parent 95ad79b5ec
commit 04c41d07ed
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ def tasteometer(phenny, input):
tasteometer.rule = (['taste'], r'(\S+)(?:\s+(\S+))?') tasteometer.rule = (['taste'], r'(\S+)(?:\s+(\S+))?')
def save_config(): def save_config():
configfile = open(config_filename, 'wb') configfile = open(config_filename, 'w')
config.write(configfile) config.write(configfile)
configfile.close() configfile.close()