diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2019-11-28 19:31:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-28 19:31:59 +0000 |
| commit | 789d71350d0348e43eb158995bfabc47f50915a6 (patch) | |
| tree | d4435f60e385b6eaa7a37cc8a603ab2fcc1c5fd2 /searx/engines | |
| parent | 05033ea8d8d3b3afb92c614a86399a499e7ad07e (diff) | |
| parent | 5e5ff0cbf83fc6929545e1ca3f936a162019a2aa (diff) | |
Merge pull request #1745 from lorddavidiii/python3.8-fix
Fix python 3.8 compatibility
Diffstat (limited to 'searx/engines')
| -rw-r--r-- | searx/engines/framalibre.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/framalibre.py b/searx/engines/framalibre.py index 146cdaeec..f3441fa5f 100644 --- a/searx/engines/framalibre.py +++ b/searx/engines/framalibre.py @@ -10,7 +10,10 @@ @parse url, title, content, thumbnail, img_src """ -from cgi import escape +try: + from cgi import escape +except: + from html import escape from lxml import html from searx.engines.xpath import extract_text from searx.url_utils import urljoin, urlencode |