convert string to unicode to avoid warning message

This commit is contained in:
Bezleputh 2014-02-26 20:10:40 +01:00
commit 95ca604472
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class GenericNewspaperBackend(BaseBackend, ICapMessages):
date=thread.date,
parent=None,
content=content.body,
signature='<a href="%s">URL</a> \n' % content.url,
signature= u'<a href="%s">URL</a> \n' % content.url,
flags=flags,
children=[])
return thread

View file

@ -110,7 +110,7 @@ class GenericNewsPage(BasePage):
def get_title(self):
try:
return self.parser.select(
return u'%s' % self.parser.select(
self.main_div,
self.element_title_selector,
1).text_content().strip()