lastfm: open config file as w, not wb, to deal with unicode properly
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user