From e3962eac7bd142aa86c655f47f35dbcb109cec89 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 14 May 2013 11:12:53 +0200 Subject: [PATCH] Pep8 cleaning --- modules/leclercmobile/backend.py | 4 ++-- modules/leclercmobile/browser.py | 2 +- modules/leclercmobile/pages/history.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/leclercmobile/backend.py b/modules/leclercmobile/backend.py index e354183e..09525d91 100644 --- a/modules/leclercmobile/backend.py +++ b/modules/leclercmobile/backend.py @@ -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): diff --git a/modules/leclercmobile/browser.py b/modules/leclercmobile/browser.py index 2bbe76ca..8c1f10e5 100644 --- a/modules/leclercmobile/browser.py +++ b/modules/leclercmobile/browser.py @@ -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" diff --git a/modules/leclercmobile/pages/history.py b/modules/leclercmobile/pages/history.py index e123846f..61ae4a9a 100644 --- a/modules/leclercmobile/pages/history.py +++ b/modules/leclercmobile/pages/history.py @@ -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: