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:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -73,6 +73,7 @@ class AccountsListPage(BasePage):
|
|||
|
||||
return iter(accounts)
|
||||
|
||||
|
||||
class Transaction(FrenchTransaction):
|
||||
PATTERNS = [(re.compile('^VIR(EMENT)? (?P<text>.*)'), FrenchTransaction.TYPE_TRANSFER),
|
||||
(re.compile('^PRLV (?P<text>.*)'), FrenchTransaction.TYPE_ORDER),
|
||||
|
|
@ -85,6 +86,7 @@ class Transaction(FrenchTransaction):
|
|||
(re.compile('^REMISE (?P<text>.*)'), FrenchTransaction.TYPE_DEPOSIT),
|
||||
]
|
||||
|
||||
|
||||
class HistoryPage(BasePage):
|
||||
def get_next_link(self):
|
||||
return None
|
||||
|
|
@ -92,6 +94,7 @@ class HistoryPage(BasePage):
|
|||
def get_operations(self, num_page, date_guesser):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class CPTHistoryPage(HistoryPage):
|
||||
def get_operations(self, num_page, date_guesser):
|
||||
for script in self.document.getiterator('script'):
|
||||
|
|
@ -105,6 +108,7 @@ class CPTHistoryPage(HistoryPage):
|
|||
op._coming = (re.match('\d+/\d+/\d+', m.group(2)) is None)
|
||||
yield op
|
||||
|
||||
|
||||
class CardHistoryPage(HistoryPage):
|
||||
def get_next_link(self):
|
||||
ok = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue