mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 12:10:11 +01:00
[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
|
||||
)
|
||||
from searx.poolrequests import get as http_get
|
||||
|
||||
try:
|
||||
from urllib import urlencode
|
||||
except:
|
||||
from urllib.parse import urlencode
|
||||
from searx.url_utils import urlencode
|
||||
|
||||
|
||||
def get(*args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user