pep8: Various manual fixes

This commit is contained in:
Laurent Bachelier 2014-10-13 22:31:29 +02:00
commit db1618e86f
11 changed files with 30 additions and 34 deletions

View file

@ -239,7 +239,7 @@ class Citibank(object):
@retrying
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)
for name in os.listdir(self._downloads):
if not name.endswith(suffix):

View file

@ -66,7 +66,6 @@ class CreditMutuelBrowser(LoginBrowser):
currentSubBank = None
def do_login(self):
self.login.stay_or_go()

View file

@ -54,7 +54,6 @@ class HSBC(LoginBrowser):
return preq
def home(self):
return self.login.go()

View file

@ -63,7 +63,7 @@ class RoadmapResultsPage(Page):
if len(best) == 0:
best = self.parser.select(self.document.getroot(), 'div.bloc-iti')
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')
if len(link) == 0:

View file

@ -33,4 +33,4 @@ class SFRTest(BackendTest):
def test_get_account_status(self):
nbSms = self.backend.get_account_status()
assert nbSms
assert isinstance(nbSms[0].value, str);
assert isinstance(nbSms[0].value, str)

View file

@ -311,4 +311,3 @@ class StatementParser(object):
t = self._tok.tok(pos)
return (pos+1, [float(v) for v in t.value()]) \
if t.is_layout_tm() else (pos, None)

View file

@ -19,7 +19,6 @@
import re
__all__ = ['ReTokenizer']
@ -102,7 +101,7 @@ def test():
('og', r'^one(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(1).value() == 'group'
assert t.tok(2).value() == ('multi', 'group')