summaryrefslogtreecommitdiff
path: root/searx/engines/searchcode_doc.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/searchcode_doc.py')
-rw-r--r--searx/engines/searchcode_doc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/searchcode_doc.py b/searx/engines/searchcode_doc.py
index 99e10be62..4b8e9a84a 100644
--- a/searx/engines/searchcode_doc.py
+++ b/searx/engines/searchcode_doc.py
@@ -10,8 +10,8 @@
@parse url, title, content
"""
-from urllib import urlencode
from json import loads
+from searx.url_utils import urlencode
# engine dependent config
categories = ['it']
@@ -24,8 +24,7 @@ search_url = url + 'api/search_IV/?{query}&p={pageno}'
# do search-request
def request(query, params):
- params['url'] = search_url.format(query=urlencode({'q': query}),
- pageno=params['pageno'] - 1)
+ params['url'] = search_url.format(query=urlencode({'q': query}), pageno=params['pageno'] - 1)
return params