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