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

This commit is contained in:
mutantmonkey
2011-09-26 13:56:55 -04:00
parent 95ad79b5ec
commit 04c41d07ed

View File

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