Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 8511e64f authored by Adam Tauber's avatar Adam Tauber Committed by GitHub
Browse files

Merge pull request #1124 from JosephKiranBabu/python3-unicode-support

Make Python 3 able to read settings files with Unicode characters
parents bb47ea24 bdc803e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ if not settings_path:
    raise Exception('settings.yml not found')

# load settings
with open(settings_path) as settings_yaml:
with open(settings_path, 'rb') as settings_yaml:
    settings = load(settings_yaml)

'''
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ engines = {}

categories = {'general': []}

languages = loads(open(engine_dir + '/../data/engines_languages.json').read())
languages = loads(open(engine_dir + '/../data/engines_languages.json', 'rb').read())

engine_shortcuts = {}
engine_default_args = {'paging': False,
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ def load():
    global db

    current_dir = os.path.dirname(os.path.realpath(__file__))
    json_data = open(current_dir + "/../data/currencies.json").read()
    json_data = open(current_dir + "/../data/currencies.json", 'rb').read()

    db = json.loads(json_data)