on master help sign in
Merge pull request #1124 from JosephKiranBabu/python3-unicode-support
8511e64Adam Tauber
searx/__init__.py+1−1
@@ -50,7 +50,7 @@ if not settings_path:
50 raise Exception('settings.yml not found')
50 raise Exception('settings.yml not found')
51
51
52# load settings
52# load settings
53−with open(settings_path) as settings_yaml:
53+with open(settings_path, 'rb') as settings_yaml:
54 settings = load(settings_yaml)
54 settings = load(settings_yaml)
55
55
56'''
56'''
searx/engines/__init__.py+1−1
@@ -36,7 +36,7 @@ engines = {}
36
36
37categories = {'general': []}
37categories = {'general': []}
38
38
39−languages = loads(open(engine_dir + '/../data/engines_languages.json').read())
39+languages = loads(open(engine_dir + '/../data/engines_languages.json', 'rb').read())
40
40
41engine_shortcuts = {}
41engine_shortcuts = {}
42engine_default_args = {'paging': False,
42engine_default_args = {'paging': False,
searx/engines/currency_convert.py+1−1
@@ -94,7 +94,7 @@ def load():
94 global db
94 global db
95
95
96 current_dir = os.path.dirname(os.path.realpath(__file__))
96 current_dir = os.path.dirname(os.path.realpath(__file__))
97− json_data = open(current_dir + "/../data/currencies.json").read()
97+ json_data = open(current_dir + "/../data/currencies.json", 'rb').read()
98
98
99 db = json.loads(json_data)
99 db = json.loads(json_data)
100
100