fix pyflakes issues
This commit is contained in:
parent
a9b2f5fe66
commit
a8455d4376
2 changed files with 1 additions and 2 deletions
|
|
@ -127,7 +127,6 @@ class HousingPage2(JsonPage):
|
||||||
for img in Dict('characteristics/images')(self):
|
for img in Dict('characteristics/images')(self):
|
||||||
m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img)
|
m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img)
|
||||||
if m:
|
if m:
|
||||||
print m.group(0)
|
|
||||||
photos.append(HousingPhoto(m.group(1)))
|
photos.append(HousingPhoto(m.group(1)))
|
||||||
return photos
|
return photos
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ class TableElement(ListElement):
|
||||||
self._cols[name] = colnum
|
self._cols[name] = colnum
|
||||||
try:
|
try:
|
||||||
colnum += int(el.attrib.get('colspan', 1))
|
colnum += int(el.attrib.get('colspan', 1))
|
||||||
except (ValueError, AttributeError) as e:
|
except (ValueError, AttributeError):
|
||||||
colnum += 1
|
colnum += 1
|
||||||
|
|
||||||
def get_colnum(self, name):
|
def get_colnum(self, name):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue