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
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue