mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
parent
272158944b
commit
1022228d95
112 changed files with 388 additions and 535 deletions
|
@ -20,13 +20,10 @@ from importlib import import_module
|
|||
from os import listdir, makedirs, remove, stat, utime
|
||||
from os.path import abspath, basename, dirname, exists, join
|
||||
from shutil import copyfile
|
||||
from sys import version_info
|
||||
from traceback import print_exc
|
||||
|
||||
from searx import logger, settings, static_path
|
||||
|
||||
if version_info[0] == 3:
|
||||
unicode = str
|
||||
|
||||
logger = logger.getChild('plugins')
|
||||
|
||||
|
@ -38,8 +35,8 @@ from searx.plugins import (oa_doi_rewrite,
|
|||
tracker_url_remover,
|
||||
vim_hotkeys)
|
||||
|
||||
required_attrs = (('name', (str, unicode)),
|
||||
('description', (str, unicode)),
|
||||
required_attrs = (('name', str),
|
||||
('description', str),
|
||||
('default_on', bool))
|
||||
|
||||
optional_attrs = (('js_dependencies', tuple),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue