From aae4dfa062995398c87c145a6fb179f3c5ac33ea Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 27 Oct 2010 22:48:52 -0500 Subject: [PATCH] remove a (hopefully) useless unicode() call --- modules/Weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Weather.py b/modules/Weather.py index aa662e1..b1e347f 100644 --- a/modules/Weather.py +++ b/modules/Weather.py @@ -39,7 +39,7 @@ class Weather(Module): for city in google_weather['forecasts']: weatherstr += " " + city['day_of_week'].encode('utf-8') + ": " + city['condition'].encode('utf-8') + ". High " + city['high'].encode('utf-8') + "°F, Low " + city['low'].encode('utf-8') + "°F." - return self.reply(connection, replypath, unicode(weatherstr, 'utf-8')) + return self.reply(connection, replypath, weatherstr) except URLError as e: return self.reply(connection, replypath, "error connecting to google weather:" + str(e)) except IndexError as e: