1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 12:10:11 +01:00

Merge pull request #1093 from Zeph33/fix/#1088

[fix] autocompleter py3 compatibility - fixes #1088
This commit is contained in:
Adam Tauber 2017-11-24 10:42:28 +01:00 committed by GitHub
commit 0f8d7a00af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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