pep8: Various manual fixes
This commit is contained in:
parent
d9065796e9
commit
db1618e86f
11 changed files with 30 additions and 34 deletions
|
|
@ -239,7 +239,7 @@ class Citibank(object):
|
||||||
|
|
||||||
@retrying
|
@retrying
|
||||||
def wait_file(self, suffix):
|
def wait_file(self, suffix):
|
||||||
self._logger.debug('Waiting for file "*%s" to finish downloading.' % \
|
self._logger.debug('Waiting for file "*%s" to finish downloading.' %
|
||||||
suffix)
|
suffix)
|
||||||
for name in os.listdir(self._downloads):
|
for name in os.listdir(self._downloads):
|
||||||
if not name.endswith(suffix):
|
if not name.endswith(suffix):
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,6 @@ class CreditMutuelBrowser(LoginBrowser):
|
||||||
|
|
||||||
currentSubBank = None
|
currentSubBank = None
|
||||||
|
|
||||||
|
|
||||||
def do_login(self):
|
def do_login(self):
|
||||||
self.login.stay_or_go()
|
self.login.stay_or_go()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ class HSBC(LoginBrowser):
|
||||||
|
|
||||||
return preq
|
return preq
|
||||||
|
|
||||||
|
|
||||||
def home(self):
|
def home(self):
|
||||||
return self.login.go()
|
return self.login.go()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class RoadmapResultsPage(Page):
|
||||||
if len(best) == 0:
|
if len(best) == 0:
|
||||||
best = self.parser.select(self.document.getroot(), 'div.bloc-iti')
|
best = self.parser.select(self.document.getroot(), 'div.bloc-iti')
|
||||||
if len(best) == 0:
|
if len(best) == 0:
|
||||||
raise RoadmapError('Unable to get the best roadmap');
|
raise RoadmapError('Unable to get the best roadmap')
|
||||||
|
|
||||||
link = self.parser.select(best[0], 'a.btn-submit')
|
link = self.parser.select(best[0], 'a.btn-submit')
|
||||||
if len(link) == 0:
|
if len(link) == 0:
|
||||||
|
|
|
||||||
|
|
@ -33,4 +33,4 @@ class SFRTest(BackendTest):
|
||||||
def test_get_account_status(self):
|
def test_get_account_status(self):
|
||||||
nbSms = self.backend.get_account_status()
|
nbSms = self.backend.get_account_status()
|
||||||
assert nbSms
|
assert nbSms
|
||||||
assert isinstance(nbSms[0].value, str);
|
assert isinstance(nbSms[0].value, str)
|
||||||
|
|
|
||||||
|
|
@ -311,4 +311,3 @@ class StatementParser(object):
|
||||||
t = self._tok.tok(pos)
|
t = self._tok.tok(pos)
|
||||||
return (pos+1, [float(v) for v in t.value()]) \
|
return (pos+1, [float(v) for v in t.value()]) \
|
||||||
if t.is_layout_tm() else (pos, None)
|
if t.is_layout_tm() else (pos, None)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['ReTokenizer']
|
__all__ = ['ReTokenizer']
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -102,7 +101,7 @@ def test():
|
||||||
('og', r'^one(g.*)$'),
|
('og', r'^one(g.*)$'),
|
||||||
('mg', r'^(m.*)(g.*)$')])
|
('mg', r'^(m.*)(g.*)$')])
|
||||||
|
|
||||||
assert t.tok(-1).value() == None
|
assert t.tok(-1).value() is None
|
||||||
assert t.tok(0).value() == 'nogroup'
|
assert t.tok(0).value() == 'nogroup'
|
||||||
assert t.tok(1).value() == 'group'
|
assert t.tok(1).value() == 'group'
|
||||||
assert t.tok(2).value() == ('multi', 'group')
|
assert t.tok(2).value() == ('multi', 'group')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue