Easy spacing fixes, trailing stuff

Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
This commit is contained in:
Laurent Bachelier 2013-03-15 20:01:49 +01:00
commit 7094931c92
231 changed files with 474 additions and 67 deletions

View file

@ -136,6 +136,7 @@ class ContractsPage(BasePage):
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'mainForm')
self.browser.submit()
class AccountsPage(BasePage):
def on_loaded(self):
warn = self.document.xpath('//div[@id="attTxt"]')
@ -222,6 +223,7 @@ class Transaction(FrenchTransaction):
(re.compile('^(?P<category>REM CHQ) (?P<text>.*)'), FrenchTransaction.TYPE_DEPOSIT),
]
class AccountHistoryPage(BasePage):
def get_table(self):
tables=self.document.findall("//table[@class='tagTab pyjama']")
@ -303,6 +305,7 @@ class AccountHistoryPage(BasePage):
operations.append(operation)
return operations
class CBHistoryPage(AccountHistoryPage):
def get_table(self):
# there is only one table on the page
@ -320,6 +323,7 @@ class CBHistoryPage(AccountHistoryPage):
tr.type = tr.TYPE_CARD
yield tr
class CBListPage(CBHistoryPage):
def get_cards(self):
cards = []