remove a (hopefully) useless unicode() call

This commit is contained in:
Brian S. Stephan 2010-10-27 22:48:52 -05:00
parent 8384a54961
commit aae4dfa062
1 changed files with 1 additions and 1 deletions

View File

@ -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: