diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-11-24 10:42:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 10:42:28 +0100 |
commit | 0f8d7a00af08ba057e228221114b9edb02c00903 (patch) | |
tree | a45f388674cda99f35e56a36a167cfca76068ede | |
parent | 7828a1833b06a169f5283f66ba9d54d060a96a11 (diff) | |
parent | 02cb5602b4373241fe6a5f557a1afddaf9aa88d3 (diff) | |
download | searxng-0f8d7a00af08ba057e228221114b9edb02c00903.tar.gz searxng-0f8d7a00af08ba057e228221114b9edb02c00903.zip |
Merge pull request #1093 from Zeph33/fix/#1088
[fix] autocompleter py3 compatibility - fixes #1088
-rw-r--r-- | searx/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |