Fix PEP8 E713

This commit is contained in:
Laurent Bachelier 2015-08-07 16:35:41 +02:00
commit f7115f5f69
8 changed files with 8 additions and 8 deletions

View file

@ -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'] = []

View file

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