mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 12:51:02 +00:00
[fix] autocompleter py3 compatibility - fixes #1088
This commit is contained in:
parent
7828a1833b
commit
02cb5602b4
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class RawTextQuery(object):
|
||||||
self.query_parts = []
|
self.query_parts = []
|
||||||
|
|
||||||
# split query, including whitespaces
|
# 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
|
parse_next = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue