forked from Icycoide/searxng
Merge pull request #1124 from JosephKiranBabu/python3-unicode-support
Make Python 3 able to read settings files with Unicode characters
This commit is contained in:
commit
8511e64f35
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue