pep8: Use "X not in Y" instead of "not X in Y"

flake8 --select E713, semi-manual fixing
This commit is contained in:
Laurent Bachelier 2014-10-11 01:27:24 +02:00
commit 21e8f82fd7
57 changed files with 81 additions and 83 deletions

View file

@ -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