Fix website link localization not working thanks to py3

This commit is contained in:
Kovid Goyal 2020-11-01 20:18:25 +05:30
parent a535f99d66
commit c0331bdd1b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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