pep8: Use "X not in Y" instead of "not X in Y"
flake8 --select E713, semi-manual fixing
This commit is contained in:
parent
31a96228db
commit
21e8f82fd7
57 changed files with 81 additions and 83 deletions
|
|
@ -153,7 +153,7 @@ class AccountsPage(BredBasePage):
|
|||
if a is None:
|
||||
for a in cols[0].xpath('.//li/a'):
|
||||
args = self.js2args(a.attrib['href'])
|
||||
if not 'numero_compte' in args or not 'numero_poste' in args:
|
||||
if 'numero_compte' not in args or 'numero_poste' not in args:
|
||||
self.logger.warning('Card link with strange args: %s' % args)
|
||||
continue
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ class AccountsPage(BredBasePage):
|
|||
|
||||
args = self.js2args(a.attrib['href'])
|
||||
|
||||
if not 'numero_compte' in args or not 'numero_poste' in args:
|
||||
if 'numero_compte' not in args or 'numero_poste' not in args:
|
||||
self.logger.warning('Account link for %r with strange args: %s' % (a.attrib.get('alt', a.text), args))
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue