Browse Source

[fix] replace obsolete string.join function

Adam Tauber 7 years ago
parent
commit
fe6e87a5a4
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      searx/query.py

+ 1
- 2
searx/query.py View File

22
     categories, engines, engine_shortcuts
22
     categories, engines, engine_shortcuts
23
 )
23
 )
24
 import re
24
 import re
25
-import string
26
 import sys
25
 import sys
27
 
26
 
28
 if sys.version_info[0] == 3:
27
 if sys.version_info[0] == 3:
143
 
142
 
144
     def getFullQuery(self):
143
     def getFullQuery(self):
145
         # get full querry including whitespaces
144
         # get full querry including whitespaces
146
-        return string.join(self.query_parts, '')
145
+        return u''.join(self.query_parts)
147
 
146
 
148
 
147
 
149
 class SearchQuery(object):
148
 class SearchQuery(object):