forked from zaclys/searxng
[fix] use py2/3 compatibility layer
This commit is contained in:
parent
80460be8f6
commit
36af8f9d67
|
@ -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 New Issue