Browse Source

[fix] autocompleter py3 compatibility - fixes #1088

Zeph 7 years ago
parent
commit
02cb5602b4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/query.py

+ 1
- 1
searx/query.py View File

51
         self.query_parts = []
51
         self.query_parts = []
52
 
52
 
53
         # split query, including whitespaces
53
         # split query, including whitespaces
54
-        raw_query_parts = re.split(r'(\s+)', self.query)
54
+        raw_query_parts = re.split(r'(\s+)' if isinstance(self.query, str) else b'(\s+)', self.query)
55
 
55
 
56
         parse_next = True
56
         parse_next = True
57
 
57