log unicode string literals (GC-456)

This commit is contained in:
Adrian Sampson 2012-11-06 14:22:36 -08:00
parent 19acf0809f
commit ffe5d37d78

View file

@ -47,7 +47,7 @@ def _fetch_image(url):
try:
_, headers = urllib.urlretrieve(url, filename=fn)
except IOError:
log.debug('error fetching art')
log.debug(u'error fetching art')
return
# Make sure it's actually an image.
@ -105,7 +105,7 @@ def aao_art(asin):
image_url = m.group(1)
return image_url
else:
log.debug('fetchart: no image found on page')
log.debug(u'fetchart: no image found on page')
# Art from the filesystem.
@ -126,14 +126,14 @@ def art_in_path(path):
for fn in images:
for name in COVER_NAMES:
if fn.lower().startswith(name):
log.debug('fetchart: using well-named art file {0}'.format(
log.debug(u'fetchart: using well-named art file {0}'.format(
util.displayable_path(fn)
))
return os.path.join(path, fn)
# Fall back to any image in the folder.
if images:
log.debug('fetchart: using fallback art file {0}'.format(
log.debug(u'fetchart: using fallback art file {0}'.format(
util.displayable_path(images[0])
))
return os.path.join(path, images[0])