summaryrefslogtreecommitdiff
path: root/searx/__init__.py
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/__init__.py
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/__init__.py')
-rw-r--r--searx/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/__init__.py b/searx/__init__.py
index 9cb832266..d277570bb 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -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)
'''