mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix website link localization not working thanks to py3
This commit is contained in:
parent
a535f99d66
commit
c0331bdd1b
@ -538,7 +538,7 @@ def website_languages():
|
||||
stats = getattr(website_languages, 'stats', None)
|
||||
if stats is None:
|
||||
try:
|
||||
stats = frozenset(P('localization/website-languages.txt', allow_user_override=False, data=True).split())
|
||||
stats = frozenset(P('localization/website-languages.txt', allow_user_override=False, data=True).decode('utf-8').split())
|
||||
except EnvironmentError:
|
||||
stats = frozenset()
|
||||
website_languages.stats = stats
|
||||
|
Loading…
x
Reference in New Issue
Block a user