Add missing unicode() calls to avoid ConversionWarning reports
Signed-off-by: Damien Cassou <damien.cassou@gmail.com> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
fbdf44e27a
commit
0a83341849
4 changed files with 15 additions and 15 deletions
|
|
@ -68,7 +68,7 @@ class SearchResultsPage(BasePage):
|
|||
|
||||
metro = div.cssselect('p.metro')
|
||||
if len(metro) > 0:
|
||||
housing.station = metro[0].text.strip()
|
||||
housing.station = unicode(metro[0].text.strip())
|
||||
else:
|
||||
housing.station = NotAvailable
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ class SearchResultsPage(BasePage):
|
|||
b = p.findall('b')
|
||||
if len(b) > 0:
|
||||
housing.text = b[0].tail.strip()
|
||||
housing.location = b[0].text
|
||||
housing.location = unicode(b[0].text)
|
||||
else:
|
||||
housing.text = p.text.strip()
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ class HousingPage(BasePage):
|
|||
b = p.findall('b')
|
||||
if len(b) > 0:
|
||||
housing.text = b[0].tail.strip()
|
||||
housing.location = b[0].text
|
||||
housing.location = unicode(b[0].text)
|
||||
if len(b) > 1:
|
||||
housing.phone = b[1].text
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue