sachsen: flake8 fixes
This commit is contained in:
parent
ae06ae3384
commit
4ac684e6ae
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ from datetime import datetime, date, time
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
from weboob.capabilities.gauge import Gauge, GaugeMeasure, GaugeSensor
|
from weboob.capabilities.gauge import Gauge, GaugeMeasure, GaugeSensor
|
||||||
from weboob.capabilities.base import NotAvailable, NotLoaded
|
from weboob.capabilities.base import NotAvailable, NotLoaded
|
||||||
from weboob.capabilities.base import NotAvailable
|
|
||||||
|
|
||||||
__all__ = ['ListPage', 'HistoryPage']
|
__all__ = ['ListPage', 'HistoryPage']
|
||||||
|
|
||||||
|
|
@ -36,7 +36,7 @@ class ListPage(BasePage):
|
||||||
for pegel in self.document.getroot().xpath(".//a[@onmouseout='pegelaus()']"):
|
for pegel in self.document.getroot().xpath(".//a[@onmouseout='pegelaus()']"):
|
||||||
div = pegel.getparent()
|
div = pegel.getparent()
|
||||||
img = div.find('.//img').attrib['src'].split('/')[1]
|
img = div.find('.//img').attrib['src'].split('/')[1]
|
||||||
data = pegel.attrib['onmouseover']\
|
data = pegel.attrib['onmouseover'] \
|
||||||
.strip('pegelein(').strip(')').replace(",'", ",").split("',")
|
.strip('pegelein(').strip(')').replace(",'", ",").split("',")
|
||||||
gauge = Gauge(int(data[7]))
|
gauge = Gauge(int(data[7]))
|
||||||
gauge.name = unicode(data[0].strip("'"))
|
gauge.name = unicode(data[0].strip("'"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue