pep8 blank lines fixes
flake8 --select W391,E302,E301,E304 autopep8 can't fix W391 even though it claims it can. Fixed using a simple custom script.
This commit is contained in:
parent
be2c8bd789
commit
448c06d125
142 changed files with 249 additions and 25 deletions
|
|
@ -27,6 +27,7 @@ from weboob.capabilities.bill import Subscription, Detail, Bill
|
|||
|
||||
base_url = "http://particuliers.edf.com/"
|
||||
|
||||
|
||||
class EdfBasePage(Page):
|
||||
def is_logged(self):
|
||||
return (u'Me déconnecter' in self.document.xpath('//a/text()')) \
|
||||
|
|
@ -45,16 +46,19 @@ class HomePage(EdfBasePage):
|
|||
def on_loaded(self):
|
||||
pass
|
||||
|
||||
|
||||
class FirstRedirectionPage(EdfBasePage):
|
||||
def on_loaded(self):
|
||||
self.browser.select_form("form1")
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
class SecondRedirectionPage(EdfBasePage):
|
||||
def on_loaded(self):
|
||||
self.browser.select_form("redirectForm")
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
class OtherPage(EdfBasePage):
|
||||
def on_loaded(self):
|
||||
self.browser.open(base_url)
|
||||
|
|
@ -122,6 +126,7 @@ class BillsPage(EdfBasePage):
|
|||
def get_bill(self, bill):
|
||||
self.location(bill._url)
|
||||
|
||||
|
||||
class LastPaymentsPage(EdfBasePage):
|
||||
|
||||
def on_loaded(self):
|
||||
|
|
@ -146,6 +151,7 @@ class LastPaymentsPage(EdfBasePage):
|
|||
|
||||
self.browser.location('/ASPFront/appmanager/ASPFront/front/portlet_echeancier_2?%s' % urllib.urlencode(params))
|
||||
|
||||
|
||||
class LastPaymentsPage2(EdfBasePage):
|
||||
def iter_payments(self, sub):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue