remove a (hopefully) useless unicode() call
This commit is contained in:
		
							parent
							
								
									8384a54961
								
							
						
					
					
						commit
						aae4dfa062
					
				| @ -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: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user