mirror of
https://github.com/searxng/searxng.git
synced 2024-12-30 05:00:29 +00:00
[fix] use py2/3 compatibility layer
This commit is contained in:
parent
80460be8f6
commit
36af8f9d67
1 changed files with 1 additions and 5 deletions
|
@ -24,11 +24,7 @@ from searx.engines import (
|
||||||
categories, engines, engine_shortcuts
|
categories, engines, engine_shortcuts
|
||||||
)
|
)
|
||||||
from searx.poolrequests import get as http_get
|
from searx.poolrequests import get as http_get
|
||||||
|
from searx.url_utils import urlencode
|
||||||
try:
|
|
||||||
from urllib import urlencode
|
|
||||||
except:
|
|
||||||
from urllib.parse import urlencode
|
|
||||||
|
|
||||||
|
|
||||||
def get(*args, **kwargs):
|
def get(*args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue