Merge pull request #205 from ndbroadbent/patch-1

Fix PhotoAlbum#__str__ for UTF-8 album titles
This commit is contained in:
Quentame 2020-02-08 10:37:25 +01:00 committed by GitHub
commit b20970098e

View file

@ -403,7 +403,7 @@ class PhotoAlbum(object):
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
return as_unicode return as_unicode
else: else:
return as_unicode.encode('ascii', 'ignore') return as_unicode.encode('utf-8', 'ignore')
def __repr__(self): def __repr__(self):
return "<%s: '%s'>" % ( return "<%s: '%s'>" % (