From: Oleg Broytman Date: Sun, 18 Dec 2011 17:48:28 +0000 (+0000) Subject: Changed the order or parser according to their success rate. X-Git-Tag: v4.5.3~24 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f51dfd36f4fa565860ec20eb9f5c5fdac937276e;p=bookmarks_db.git Changed the order or parser according to their success rate. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@352 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/parse_html/bkmk_parse_html.py b/parse_html/bkmk_parse_html.py index e1d4710..014f477 100644 --- a/parse_html/bkmk_parse_html.py +++ b/parse_html/bkmk_parse_html.py @@ -29,25 +29,25 @@ else: parsers.append(bkmk_ph_beautifulsoup.parse_html) try: - from . import bkmk_ph_htmlparser + from . import bkmk_ph_html5 except ImportError: pass else: - parsers.append(bkmk_ph_htmlparser.parse_html) + parsers.append(bkmk_ph_html5.parse_html) try: - from . import bkmk_ph_html5 + from . import bkmk_ph_lxml except ImportError: pass else: - parsers.append(bkmk_ph_html5.parse_html) + parsers.append(bkmk_ph_lxml.parse_html) try: - from . import bkmk_ph_lxml + from . import bkmk_ph_htmlparser except ImportError: pass else: - parsers.append(bkmk_ph_lxml.parse_html) + parsers.append(bkmk_ph_htmlparser.parse_html) # ElementTidy often segfaults #try: