diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-01-18 12:47:31 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2016-01-18 12:47:31 +0100 |
| commit | bd22e9a3363090a5e4f851670b0650349a528749 (patch) | |
| tree | ea0b4b80430ffebc7e9eaa2c28188884a7c67218 /searx/engines/xpath.py | |
| parent | 6a158ca2d2c5fdec597f1025c58fad90a57312dc (diff) | |
[fix] pep8 compatibilty
Diffstat (limited to 'searx/engines/xpath.py')
| -rw-r--r-- | searx/engines/xpath.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 1a599dc0a..f51634be0 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -43,7 +43,7 @@ def extract_url(xpath_results, search_url): if url.startswith('//'): # add http or https to this kind of url //example.com/ parsed_search_url = urlparse(search_url) - url = parsed_search_url.scheme+url + url = parsed_search_url.scheme + url elif url.startswith('/'): # fix relative url to the search engine url = urljoin(search_url, url) @@ -69,7 +69,7 @@ def normalize_url(url): p = parsed_url.path mark = p.find('/**') if mark != -1: - return unquote(p[mark+3:]).decode('utf-8') + return unquote(p[mark + 3:]).decode('utf-8') return url |