Fix PEP8 E713
This commit is contained in:
parent
c4f221fba0
commit
f7115f5f69
8 changed files with 8 additions and 8 deletions
|
|
@ -101,7 +101,7 @@ class ProAccountHistory(Page):
|
|||
except IndexError:
|
||||
return
|
||||
|
||||
if not 'checked' in checkbox.attrib:
|
||||
if 'checked' not in checkbox.attrib:
|
||||
self.browser.select_form(name='formtri')
|
||||
self.browser['szTriDate'] = ['date']
|
||||
self.browser['szTriRub'] = []
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class JsonBrowserMixin(object):
|
|||
def open(self, *args, **kwargs):
|
||||
if isJSON(kwargs.get('data')):
|
||||
kwargs['data'] = json.dumps(kwargs['data'][1])
|
||||
if not 'headers' in kwargs:
|
||||
if 'headers' not in kwargs:
|
||||
kwargs['headers'] = {}
|
||||
kwargs['headers']['Content-Type'] = 'application/json'
|
||||
|
||||
|
|
|
|||
|
|
@ -116,5 +116,5 @@ class AccountsList(Page):
|
|||
account.balance = Decimal(0)
|
||||
else:
|
||||
# because of some weird useless <tr>
|
||||
if account.id is not None and (not account._link_id or not 'moneycenter' in account._link_id):
|
||||
if account.id is not None and (not account._link_id or 'moneycenter' not in account._link_id):
|
||||
yield account
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class BredBrowser(DomainBrowser):
|
|||
a.currency = poste['montantTitres']['monnaie']['code'].strip()
|
||||
yield a
|
||||
|
||||
if not 'libelle' in poste:
|
||||
if 'libelle' not in poste:
|
||||
continue
|
||||
|
||||
a.label = ' '.join([content['intitule'].strip(), poste['libelle'].strip()])
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ class AccountHistoryPage(LoggedPage, HTMLPage):
|
|||
return self.parent.get_colnum('date') is not None and \
|
||||
len(self.el.findall('td')) >= 3 and \
|
||||
self.el.get('class') and \
|
||||
not 'tableTr' in self.el.get('class')
|
||||
'tableTr' not in self.el.get('class')
|
||||
|
||||
def validate(self, obj):
|
||||
if obj.category == 'RELEVE CB':
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class TinderModule(Module, CapMessages, CapMessagesPost, CapDating):
|
|||
|
||||
def iter_threads(self):
|
||||
for thread in self.browser.get_threads():
|
||||
if not 'person' in thread:
|
||||
if 'person' not in thread:
|
||||
# The account has been removed, probably because it was a
|
||||
# spammer.
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue