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
|
|
@ -266,13 +266,13 @@ class AccountsPage(BasePage):
|
|||
currency = Account.get_currency(m.group(1))
|
||||
|
||||
for tr in div.getnext().xpath('.//tbody/tr'):
|
||||
if not 'id' in tr.attrib:
|
||||
if 'id' not in tr.attrib:
|
||||
continue
|
||||
|
||||
args = dict(parse_qsl(tr.attrib['id']))
|
||||
tds = tr.findall('td')
|
||||
|
||||
if len(tds) < 4 or not 'identifiant' in args:
|
||||
if len(tds) < 4 or 'identifiant' not in args:
|
||||
self.logger.warning('Unable to parse an account')
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue