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:
Laurent Bachelier 2014-10-10 23:04:08 +02:00
commit 448c06d125
142 changed files with 249 additions and 25 deletions

View file

@ -34,6 +34,7 @@ from weboob.tools.capabilities.bank.transactions import AmericanTransaction
class CSVAlreadyAsked(Exception):
pass
def clean_amount(text):
amnt = AmericanTransaction.clean_amount(text)
return Decimal(amnt) if amnt else Decimal("0")
@ -135,6 +136,7 @@ class DownloadHistoryPage(Page):
self.browser.submit()
class LastDownloadHistoryPage(Page):
def download(self):
self.browser.select_form(nr=1)
@ -142,10 +144,12 @@ class LastDownloadHistoryPage(Page):
self.browser['log_select'] = [log_select]
self.browser.submit()
class SubmitPage(Page):
"""
Any result of form submission
"""
def iter_transactions(self, account):
csv = self.document