Pep8 cleaning
This commit is contained in:
parent
3b2fb9cfbd
commit
e3962eac7b
3 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
from weboob.capabilities.bill import ICapBill, SubscriptionNotFound,\
|
from weboob.capabilities.bill import ICapBill, SubscriptionNotFound,\
|
||||||
BillNotFound, Subscription, Bill
|
BillNotFound, Subscription, Bill
|
||||||
from weboob.tools.backend import BaseBackend, BackendConfig
|
from weboob.tools.backend import BaseBackend, BackendConfig
|
||||||
from weboob.tools.value import ValueBackendPassword
|
from weboob.tools.value import ValueBackendPassword
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ class LeclercMobileBackend(BaseBackend, ICapBill):
|
||||||
regexp='^(\d{10}|)$'),
|
regexp='^(\d{10}|)$'),
|
||||||
ValueBackendPassword('password',
|
ValueBackendPassword('password',
|
||||||
label='Password')
|
label='Password')
|
||||||
)
|
)
|
||||||
BROWSER = Leclercmobile
|
BROWSER = Leclercmobile
|
||||||
|
|
||||||
def create_default_browser(self):
|
def create_default_browser(self):
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class Leclercmobile(BaseBrowser):
|
||||||
'.*EspaceClient/pgeWERL013_Accueil.aspx': HomePage,
|
'.*EspaceClient/pgeWERL013_Accueil.aspx': HomePage,
|
||||||
'.*pgeWERL009_ReleveConso.aspx.*': HistoryPage,
|
'.*pgeWERL009_ReleveConso.aspx.*': HistoryPage,
|
||||||
'.*ReleveConso.ashx.*': PdfPage
|
'.*ReleveConso.ashx.*': PdfPage
|
||||||
}
|
}
|
||||||
accueil = "/EspaceClient/pgeWERL013_Accueil.aspx"
|
accueil = "/EspaceClient/pgeWERL013_Accueil.aspx"
|
||||||
login = "/EspaceClient/pgeWERL008_Login.aspx"
|
login = "/EspaceClient/pgeWERL008_Login.aspx"
|
||||||
conso = "/EspaceClient/pgeWERL009_ReleveConso.aspx"
|
conso = "/EspaceClient/pgeWERL009_ReleveConso.aspx"
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,8 @@ class PdfPage():
|
||||||
page = txt.split('CONSOMMATION')[2].split('ACTIVITE DETAILLEE')[0]
|
page = txt.split('CONSOMMATION')[2].split('ACTIVITE DETAILLEE')[0]
|
||||||
lines = page.split('\n')
|
lines = page.split('\n')
|
||||||
lines = [x for x in lines if len(x) > 0] # Remove empty lines
|
lines = [x for x in lines if len(x) > 0] # Remove empty lines
|
||||||
lines.pop(0) # "MENSUELLE"
|
lines.pop(0) # "MENSUELLE"
|
||||||
lines.pop(0) # "Votre consommation au "
|
lines.pop(0) # "Votre consommation au "
|
||||||
details = []
|
details = []
|
||||||
detail = None
|
detail = None
|
||||||
for line in lines:
|
for line in lines:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue