From 04c41d07ed6a267626519992e877930a188f7232 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Mon, 26 Sep 2011 13:56:55 -0400 Subject: [PATCH] lastfm: open config file as w, not wb, to deal with unicode properly --- modules/lastfm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lastfm.py b/modules/lastfm.py index e59f9c7..5beafbd 100644 --- a/modules/lastfm.py +++ b/modules/lastfm.py @@ -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()