summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2018-01-12 10:58:23 +0100
committerGitHub <noreply@github.com>2018-01-12 10:58:23 +0100
commit8511e64f350b4b31db314a5d74ef77dd5b97b5f3 (patch)
tree45db5e08049d2be43ce3cc6c4bca8dd26754bad5 /searx/engines
parentbb47ea245541f379816cad4ffbe1654c93b48540 (diff)
parentbdc803e185e1a7bb14892405a2c0c840ba6e0fe1 (diff)
downloadsearxng-8511e64f350b4b31db314a5d74ef77dd5b97b5f3.tar.gz
searxng-8511e64f350b4b31db314a5d74ef77dd5b97b5f3.zip
Merge pull request #1124 from JosephKiranBabu/python3-unicode-support
Make Python 3 able to read settings files with Unicode characters
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/__init__.py2
-rw-r--r--searx/engines/currency_convert.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
index 7a9cc56a2..bec8de3a8 100644
--- a/searx/engines/__init__.py
+++ b/searx/engines/__init__.py
@@ -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,
diff --git a/searx/engines/currency_convert.py b/searx/engines/currency_convert.py
index 1bb4e60c9..34a9af678 100644
--- a/searx/engines/currency_convert.py
+++ b/searx/engines/currency_convert.py
@@ -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)