Easy spacing fixes, trailing stuff
Remove useless trailing \ Remove trailing spaces Add missing empty lines autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 . Diff quickly checked.
This commit is contained in:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -36,6 +36,7 @@ class CityPage(BasePage):
|
|||
city_id = item.find('a').attrib.get("href", "").split("+")[-1]
|
||||
yield City(city_id, city_name)
|
||||
|
||||
|
||||
class WeatherPage(BasePage):
|
||||
def get_city(self):
|
||||
parts = self.url.split('/')[-1].split('+')
|
||||
|
|
@ -47,6 +48,7 @@ class WeatherPage(BasePage):
|
|||
temp = float(self.document.find('//p[@class="wx-temp"]').text_content().strip().split(u'°')[0])
|
||||
return Current(date, temp, text, u'F')
|
||||
|
||||
|
||||
class ForecastPage(BasePage):
|
||||
def iter_forecast(self):
|
||||
divs = self.document.findall('//div[@class="wx-daypart"]')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue