convert string to unicode to avoid warning message
This commit is contained in:
parent
7492c0bdc4
commit
95ca604472
2 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages):
|
||||||
date=thread.date,
|
date=thread.date,
|
||||||
parent=None,
|
parent=None,
|
||||||
content=content.body,
|
content=content.body,
|
||||||
signature='<a href="%s">URL</a> \n' % content.url,
|
signature= u'<a href="%s">URL</a> \n' % content.url,
|
||||||
flags=flags,
|
flags=flags,
|
||||||
children=[])
|
children=[])
|
||||||
return thread
|
return thread
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ class GenericNewsPage(BasePage):
|
||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
try:
|
try:
|
||||||
return self.parser.select(
|
return u'%s' % self.parser.select(
|
||||||
self.main_div,
|
self.main_div,
|
||||||
self.element_title_selector,
|
self.element_title_selector,
|
||||||
1).text_content().strip()
|
1).text_content().strip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue