summaryrefslogtreecommitdiff
path: root/searx/engines/command.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-11-03 10:55:08 +0100
committerAlexandre Flament <alex@al-f.net>2020-11-03 10:55:08 +0100
commiteed43783f98dc58c94af8132452b92a172ea03b5 (patch)
tree0c8769ef5055f6e2117196a1504a401570570ae9 /searx/engines/command.py
parenta08df82574e47703ba236180222d9ffeb33fe4fc (diff)
downloadsearxng-eed43783f98dc58c94af8132452b92a172ea03b5.tar.gz
searxng-eed43783f98dc58c94af8132452b92a172ea03b5.zip
[fix] comamnd engine: fix import
Diffstat (limited to 'searx/engines/command.py')
-rw-r--r--searx/engines/command.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/command.py b/searx/engines/command.py
index b9e672ffa..1b73861f7 100644
--- a/searx/engines/command.py
+++ b/searx/engines/command.py
@@ -14,8 +14,8 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
'''
+import re
from os.path import expanduser, isabs, realpath, commonprefix
-from re import MULTILINE, search as re_search
from shlex import split as shlex_split
from subprocess import Popen, PIPE
from time import time
@@ -59,7 +59,7 @@ def init(engine_settings):
if 'parse_regex' in engine_settings:
parse_regex = engine_settings['parse_regex']
for result_key, regex in parse_regex.items():
- _compiled_parse_regex[result_key] = re.compile(regex, flags=MULTILINE)
+ _compiled_parse_regex[result_key] = re.compile(regex, flags=re.MULTILINE)
if 'delimiter' in engine_settings:
delimiter = engine_settings['delimiter']