[fix] No enconding in python3 json load func

This commit is contained in:
ljf 2018-10-05 11:10:33 +02:00
parent b39da212f5
commit 812cd37822

View file

@ -129,7 +129,7 @@ class Translator(object):
try: try:
with open('%s/%s.json' % (self.locale_dir, locale), 'r') as f: with open('%s/%s.json' % (self.locale_dir, locale), 'r') as f:
j = json.load(f, 'utf-8') j = json.load(f)
except IOError: except IOError:
return False return False
else: else: