From 110d070c4fa635e938b3125c2041ee41cc1059a9 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 29 Apr 2013 21:58:31 +0200 Subject: [PATCH] Some unicode fixes. --- dosage | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dosage b/dosage index 46b32ef2e..d91eafb38 100755 --- a/dosage +++ b/dosage @@ -171,11 +171,11 @@ def displayComicHelp(scraperobj): """Print description and help for a comic.""" out.context = getScraperName(scraperobj) try: - out.info("URL: " + scraperobj.url) + out.info(u"URL: " + scraperobj.url) if scraperobj.description: - out.info("Description: " + scraperobj.description) + out.info(u"Description: " + scraperobj.description) if scraperobj.lang: - out.info("Language: " + getLangName(scraperobj.lang)) + out.info(u"Language: " + getLangName(scraperobj.lang)) if scraperobj.help: for line in scraperobj.help.splitlines(): out.info(line) @@ -184,7 +184,7 @@ def displayComicHelp(scraperobj): out.exception(msg) return 1 finally: - out.context = '' + out.context = u'' def getComics(options): @@ -229,7 +229,7 @@ def vote(scraperobj): out.exception(msg) errors += 1 finally: - out.context = '' + out.context = u'' return errors @@ -262,7 +262,7 @@ def getStrips(scraperobj, options): out.exception(msg) errors += 1 finally: - out.context = '' + out.context = u'' return errors