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
|
|
@ -72,7 +72,7 @@ class OperationsFuturesPage(LoggedPage, HTMLPage):
|
|||
klass = Transaction
|
||||
|
||||
def condition(self):
|
||||
return not u'Aucune opération en attente' in CleanText(TableCell('date'))(self)
|
||||
return u'Aucune opération en attente' not in CleanText(TableCell('date'))(self)
|
||||
|
||||
obj_date = Date(CleanText(TableCell('date')), LinearDateGuesser())
|
||||
obj_type = Transaction.TYPE_UNKNOWN
|
||||
|
|
@ -94,7 +94,7 @@ class OperationsTraiteesPage(LoggedPage, HTMLPage):
|
|||
klass = Transaction
|
||||
|
||||
def condition(self):
|
||||
return not u'Aucune opération' in CleanText(TableCell('date'))(self)
|
||||
return u'Aucune opération' not in CleanText(TableCell('date'))(self)
|
||||
|
||||
obj_date = Date(CleanText(TableCell('date')), LinearDateGuesser())
|
||||
obj_type = Transaction.TYPE_UNKNOWN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue