Some unicode fixes.
This commit is contained in:
parent
d6ca5aa7fd
commit
110d070c4f
1 changed files with 6 additions and 6 deletions
12
dosage
12
dosage
|
@ -171,11 +171,11 @@ def displayComicHelp(scraperobj):
|
||||||
"""Print description and help for a comic."""
|
"""Print description and help for a comic."""
|
||||||
out.context = getScraperName(scraperobj)
|
out.context = getScraperName(scraperobj)
|
||||||
try:
|
try:
|
||||||
out.info("URL: " + scraperobj.url)
|
out.info(u"URL: " + scraperobj.url)
|
||||||
if scraperobj.description:
|
if scraperobj.description:
|
||||||
out.info("Description: " + scraperobj.description)
|
out.info(u"Description: " + scraperobj.description)
|
||||||
if scraperobj.lang:
|
if scraperobj.lang:
|
||||||
out.info("Language: " + getLangName(scraperobj.lang))
|
out.info(u"Language: " + getLangName(scraperobj.lang))
|
||||||
if scraperobj.help:
|
if scraperobj.help:
|
||||||
for line in scraperobj.help.splitlines():
|
for line in scraperobj.help.splitlines():
|
||||||
out.info(line)
|
out.info(line)
|
||||||
|
@ -184,7 +184,7 @@ def displayComicHelp(scraperobj):
|
||||||
out.exception(msg)
|
out.exception(msg)
|
||||||
return 1
|
return 1
|
||||||
finally:
|
finally:
|
||||||
out.context = ''
|
out.context = u''
|
||||||
|
|
||||||
|
|
||||||
def getComics(options):
|
def getComics(options):
|
||||||
|
@ -229,7 +229,7 @@ def vote(scraperobj):
|
||||||
out.exception(msg)
|
out.exception(msg)
|
||||||
errors += 1
|
errors += 1
|
||||||
finally:
|
finally:
|
||||||
out.context = ''
|
out.context = u''
|
||||||
return errors
|
return errors
|
||||||
|
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ def getStrips(scraperobj, options):
|
||||||
out.exception(msg)
|
out.exception(msg)
|
||||||
errors += 1
|
errors += 1
|
||||||
finally:
|
finally:
|
||||||
out.context = ''
|
out.context = u''
|
||||||
return errors
|
return errors
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue