Pep8 cleaning

This commit is contained in:
Florent 2013-05-14 11:12:53 +02:00
commit e3962eac7b
3 changed files with 5 additions and 5 deletions

View file

@ -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):

View file

@ -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"

View file

@ -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: