From eefa1d58c2e48820c31da89ff674355481db6899 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 22 Apr 2010 06:13:02 -0600 Subject: [PATCH] Fix USA Today --- resources/recipes/usatoday.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/recipes/usatoday.recipe b/resources/recipes/usatoday.recipe index 5b036d145d..bd47262563 100644 --- a/resources/recipes/usatoday.recipe +++ b/resources/recipes/usatoday.recipe @@ -377,8 +377,9 @@ class USAToday(BasicNewsRecipe): if byline: byline['class'] = 'byline' # Replace comma with middot - byline.contents[0].replaceWith(re.sub(","," ·", byline.renderContents())) - return byline.renderContents() + byline.contents[0].replaceWith(re.sub(u",", u" ·", + byline.renderContents(encoding=None))) + return byline.renderContents(encoding=None) else : paras = soup.findAll(text=True) for para in paras: