@@ -14,8 +14,8 @@ along with searx. If not, see < http://www.gnu.org/licenses/ >.
1414'''
1515
1616
17+import re
1718from os.path import expanduser, isabs, realpath, commonprefix
18−from re import MULTILINE, search as re_search
1919from shlex import split as shlex_split
2020from subprocess import Popen, PIPE
2121from time import time
@@ -59,7 +59,7 @@ def init(engine_settings):
5959 if 'parse_regex' in engine_settings:
6060 parse_regex = engine_settings['parse_regex']
6161 for result_key, regex in parse_regex.items():
62− _compiled_parse_regex[result_key] = re.compile(regex, flags=MULTILINE)
62+ _compiled_parse_regex[result_key] = re.compile(regex, flags=re.MULTILINE)
6363 if 'delimiter' in engine_settings:
6464 delimiter = engine_settings['delimiter']
6565