From 02cb5602b4373241fe6a5f557a1afddaf9aa88d3 Mon Sep 17 00:00:00 2001 From: Zeph Date: Thu, 23 Nov 2017 22:04:00 +0100 Subject: [PATCH] [fix] autocompleter py3 compatibility - fixes #1088 --- searx/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/query.py b/searx/query.py index 7acdd543d..e4483f188 100644 --- a/searx/query.py +++ b/searx/query.py @@ -51,7 +51,7 @@ class RawTextQuery(object): self.query_parts = [] # split query, including whitespaces - raw_query_parts = re.split(r'(\s+)', self.query) + raw_query_parts = re.split(r'(\s+)' if isinstance(self.query, str) else b'(\s+)', self.query) parse_next = True