diff options
Diffstat (limited to 'searx/engines/searchcode_code.py')
-rw-r--r-- | searx/engines/searchcode_code.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/searchcode_code.py b/searx/engines/searchcode_code.py index be7a6d385..789e8e7a9 100644 --- a/searx/engines/searchcode_code.py +++ b/searx/engines/searchcode_code.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 @@ -31,8 +31,7 @@ code_endings = {'cs': 'c#', # 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 |