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
|
|
@ -26,7 +26,7 @@ __all__ = ['StartPage']
|
|||
|
||||
|
||||
class StartPage(BasePage):
|
||||
name = [u"Temperatur", u"Wind", u"Luftdruck", u"Luftfeuchtigkeit",\
|
||||
name = [u"Temperatur", u"Wind", u"Luftdruck", u"Luftfeuchtigkeit",
|
||||
u"Niederschlag", u"Globalstrahlung", u"Schneehoehe"]
|
||||
unit = [u"°C", u"km/h", u"hPa", u"%", u"mm", u"W/m²", u"cm"]
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ class StartPage(BasePage):
|
|||
lastvalue.level = float(text.split('\n')[2].split('hPa')[0])
|
||||
if i == 3:
|
||||
text = paraph.xpath('span/font[@size="4"]/b')[0].text
|
||||
lastvalue.level = float(text.split('\n')[2].split(u'%')[0]\
|
||||
lastvalue.level = float(text.split('\n')[2].split(u'%')[0]
|
||||
.split(':')[1])
|
||||
if i == 4:
|
||||
text = paraph.xpath('b/font[@size="4"]/span')[0].text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue