Fix PEP8 E713
This commit is contained in:
parent
c4f221fba0
commit
f7115f5f69
8 changed files with 8 additions and 8 deletions
|
|
@ -794,7 +794,7 @@ class APIBrowser(DomainBrowser):
|
|||
def open(self, *args, **kwargs):
|
||||
if 'data' in kwargs:
|
||||
kwargs['data'] = json.dumps(kwargs['data'])
|
||||
if not 'headers' in kwargs:
|
||||
if 'headers' not in kwargs:
|
||||
kwargs['headers'] = {}
|
||||
kwargs['headers']['Content-Type'] = 'application/json'
|
||||
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ class TableElement(ListElement):
|
|||
for el in self.el.xpath(self.head_xpath):
|
||||
title = self.cleaner.clean(el).lower()
|
||||
for name, titles in columns.iteritems():
|
||||
if title in titles and not name in self._cols:
|
||||
if title in titles and name not in self._cols:
|
||||
self._cols[name] = colnum
|
||||
try:
|
||||
colnum += int(el.attrib.get('colspan', 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue