From e7a9fd1482573c4630a012c2cff9cd5b9965856d Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 22 Jan 2014 12:30:14 +0100 Subject: [PATCH] Strip the text before to return it --- modules/meteofrance/pages/meteo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/meteofrance/pages/meteo.py b/modules/meteofrance/pages/meteo.py index ea9d09b9..208a6d67 100644 --- a/modules/meteofrance/pages/meteo.py +++ b/modules/meteofrance/pages/meteo.py @@ -46,7 +46,7 @@ class WeatherPage(BasePage): low = self.get_temp_without_unit(temp.split('|')[0]) high = self.get_temp_without_unit(temp.split('|')[1]) broad = self.parser.select(div, 'div/div/div[@class="day-summary-broad"]', - 1, method='xpath').text_content() + 1, method='xpath').text_content().strip() uvs = self.parser.select(div, 'div/div/div[@class="day-summary-uv"]', method='xpath') uv = u''